- 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
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]
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