summaryrefslogtreecommitdiffstats
path: root/roles/common/files/etc/systemd/system/bacula-fd.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/files/etc/systemd/system/bacula-fd.service')
-rw-r--r--roles/common/files/etc/systemd/system/bacula-fd.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/common/files/etc/systemd/system/bacula-fd.service b/roles/common/files/etc/systemd/system/bacula-fd.service
new file mode 100644
index 0000000..ee5afe3
--- /dev/null
+++ b/roles/common/files/etc/systemd/system/bacula-fd.service
@@ -0,0 +1,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