From: Mark Felder Date: Sun, 3 Sep 2023 18:20:15 +0000 (-0400) Subject: Fix bacula-sd systemd unit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a463c1d3a5f8cd4004485813bed671f9efca07f;p=thirdparty%2Fbacula.git Fix bacula-sd systemd unit - no @piddir, no pidfile required for systemd, so don't try to create one or it will fail - the -t flag only tests the config and prevents the service from starting - the -v flag gets us useful logs into the systemd journal if there is a problem with the configuration The service could not work at all without adding the -P flag and removing the -t flag --- diff --git a/bacula/platforms/systemd/bacula-sd.service.in b/bacula/platforms/systemd/bacula-sd.service.in index 0e7b50eb9..4638e5574 100644 --- a/bacula/platforms/systemd/bacula-sd.service.in +++ b/bacula/platforms/systemd/bacula-sd.service.in @@ -17,7 +17,7 @@ Description=Bacula Storage Daemon service Requires=network.target After=network.target -RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@ +RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ # from http://www.freedesktop.org/software/systemd/man/systemd.service.html [Service] @@ -28,7 +28,7 @@ SupplementaryGroups=@sd_user@ Environment="LD_LIBRARY_PATH=@libdir@" # comment out to get traces working at startup using -T and -d options #WorkingDirectory=@working_dir@ -ExecStart=@sbindir@/bacula-sd -dt -c @sysconfdir@/bacula-sd.conf +ExecStart=@sbindir@/bacula-sd -d -v -P -c @sysconfdir@/bacula-sd.conf StandardError=syslog TimeoutStopSec=3min LimitMEMLOCK=infinity