summaryrefslogtreecommitdiffstats
path: root/roles/common
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-09 18:12:39 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-09 20:25:39 +0100
commit2845af5f76ad3be9c0a1f69ab478ff5a08346a4c (patch)
treefb6d6cbd630244149d5b4f7305bb95e258c88adc /roles/common
parent53cd6d2c79d206273fbe9b924156b440894a4776 (diff)
bacula-*.service: Don't fork in the background.
Inspired from /lib/systemd/system/bacula-fd.service.
Diffstat (limited to 'roles/common')
-rw-r--r--roles/common/files/etc/systemd/system/bacula-fd.service5
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/common/files/etc/systemd/system/bacula-fd.service b/roles/common/files/etc/systemd/system/bacula-fd.service
index 68934f1..192ea1b 100644
--- a/roles/common/files/etc/systemd/system/bacula-fd.service
+++ b/roles/common/files/etc/systemd/system/bacula-fd.service
@@ -3,10 +3,9 @@ Description=Bacula File Daemon service
After=network.target
[Service]
-Type=forking
-PIDFile=/var/run/bacula/bacula-fd.9102.pid
+Type=simple
StandardOutput=syslog
-ExecStart=/usr/sbin/bacula-fd -c /etc/bacula/bacula-fd.conf
+ExecStart=/usr/sbin/bacula-fd -f -c /etc/bacula/bacula-fd.conf
# Hardening
NoNewPrivileges=yes