summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/systemd/system/bacula-fd.service
blob: ee5afe39bf405d68c0b5c6bbb913fbeb769aa719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Bacula File Daemon service
After=network.target

[Service]
Type=forking
PIDFile=/var/run/bacula/bacula-fd.9102.pid
StandardOutput=syslog
ExecStart=/usr/sbin/bacula-fd -c /etc/bacula/bacula-fd.conf

# Hardening
NoNewPrivileges=yes
PrivateDevices=yes
ProtectHome=read-only
ProtectSystem=full
PrivateTmp=yes
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib
ReadWriteDirectories=-/var/run/bacula

[Install]
WantedBy=multi-user.target