diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 18:12:39 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2018-12-09 20:25:39 +0100 |
commit | 2845af5f76ad3be9c0a1f69ab478ff5a08346a4c (patch) | |
tree | fb6d6cbd630244149d5b4f7305bb95e258c88adc /roles/bacula-sd | |
parent | 53cd6d2c79d206273fbe9b924156b440894a4776 (diff) |
bacula-*.service: Don't fork in the background.
Inspired from /lib/systemd/system/bacula-fd.service.
Diffstat (limited to 'roles/bacula-sd')
-rw-r--r-- | roles/bacula-sd/files/etc/systemd/system/bacula-sd.service | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service b/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service index 0e27af3..0117d3d 100644 --- a/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service +++ b/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service @@ -3,12 +3,11 @@ Description=Bacula Storage Daemon service After=network.target [Service] -Type=forking -PIDFile=/var/run/bacula/bacula-sd.9103.pid +Type=simple StandardOutput=syslog User=bacula Group=tape -ExecStart=/usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf +ExecStart=/usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf # Hardening NoNewPrivileges=yes |