summaryrefslogtreecommitdiffstats
path: root/roles/bacula-dir/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bacula-dir/files')
-rw-r--r--roles/bacula-dir/files/lib/systemd/system/bacula-director.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/bacula-dir/files/lib/systemd/system/bacula-director.service b/roles/bacula-dir/files/lib/systemd/system/bacula-director.service
new file mode 100644
index 0000000..7b34c8b
--- /dev/null
+++ b/roles/bacula-dir/files/lib/systemd/system/bacula-director.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Bacula Director service
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/bacula/bacula-dir.9101.pid
+StandardOutput=syslog
+User=bacula
+Group=tape
+ExecStart=/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf
+
+[Install]
+WantedBy=multi-user.target