From 72a66c1477c4a3680098f37f74901f194f6c039b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 5 Aug 2022 09:31:56 +0200 Subject: [PATCH] Fix org#2657 About startup problem for bacula-sd --- bacula/platforms/systemd/bacula-sd.service.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/platforms/systemd/bacula-sd.service.in b/bacula/platforms/systemd/bacula-sd.service.in index dd8d69fab..0e7b50eb9 100644 --- a/bacula/platforms/systemd/bacula-sd.service.in +++ b/bacula/platforms/systemd/bacula-sd.service.in @@ -17,13 +17,14 @@ Description=Bacula Storage Daemon service Requires=network.target After=network.target -RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ +RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@ # from http://www.freedesktop.org/software/systemd/man/systemd.service.html [Service] -Type=simple +Type=forking User=@sd_user@ Group=@sd_group@ +SupplementaryGroups=@sd_user@ Environment="LD_LIBRARY_PATH=@libdir@" # comment out to get traces working at startup using -T and -d options #WorkingDirectory=@working_dir@ -- 2.47.3