From: Philipp Storz Date: Mon, 9 Jan 2012 12:08:27 +0000 (+0100) Subject: Fix systemd pid files. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc6632e9759deb4a92c52323cf44b4129a83c811;p=bacula%2Fbacula Fix systemd pid files. Signed-off-by: Marco van Wieringen --- diff --git a/bacula/platforms/systemd/bacula-dir.service.in b/bacula/platforms/systemd/bacula-dir.service.in index 5c928c1315..265e92b64c 100644 --- a/bacula/platforms/systemd/bacula-dir.service.in +++ b/bacula/platforms/systemd/bacula-dir.service.in @@ -26,7 +26,7 @@ ConditionPathIsDirectory=@working_dir@ [Service] Type=forking -PIDFile=@piddir@/bacula-dir.pid +PIDFile=@piddir@/bacula-dir.@dir_port@.pid # EnvironmentFile=-/etc/sysconfig/bacula-dir StandardOutput=syslog ExecStart=@sbindir@/bacula-dir -u @dir_user@ -g @dir_group@ -c @sysconfdir@/bacula-dir.conf diff --git a/bacula/platforms/systemd/bacula-fd.service.in b/bacula/platforms/systemd/bacula-fd.service.in index 973d2e77d7..8463bbd287 100644 --- a/bacula/platforms/systemd/bacula-fd.service.in +++ b/bacula/platforms/systemd/bacula-fd.service.in @@ -21,7 +21,7 @@ After=var-run.mount nss-lookup.target network.target remote-fs.target syslog.tar [Service] Type=forking -PIDFile=@piddir@/bacula-fd.pid +PIDFile=@piddir@/bacula-fd.@fd_port@.pid StandardOutput=syslog ExecStart=@sbindir@/bacula-fd -u @fd_user@ -g @fd_group@ -c @sysconfdir@/bacula-fd.conf diff --git a/bacula/platforms/systemd/bacula-sd.service.in b/bacula/platforms/systemd/bacula-sd.service.in index 58687dcc9a..ba78f7f806 100644 --- a/bacula/platforms/systemd/bacula-sd.service.in +++ b/bacula/platforms/systemd/bacula-sd.service.in @@ -21,7 +21,7 @@ After=var-run.mount nss-lookup.target network.target remote-fs.target syslog.tar [Service] Type=forking -PIDFile=@piddir@/bacula-sd.pid +PIDFile=@piddir@/bacula-sd.@sd_port@.pid # EnvironmentFile=-/etc/sysconfig/bacula-sd StandardOutput=syslog ExecStart=@sbindir@/bacula-sd -u @sd_user@ -g @sd_group@ -c @sysconfdir@/bacula-sd.conf