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

[Service]
Type=forking
PIDFile=/var/run/bacula/bacula-sd.9103.pid
StandardOutput=syslog
User=bacula
Group=tape
ExecStart=/usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf

# Hardening
NoNewPrivileges=yes
PrivateDevices=yes
ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib/bacula
ReadWriteDirectories=-/var/run/bacula
ReadWriteDirectories=/mnt/backup/bacula

[Install]
WantedBy=multi-user.target