From b07a6b75c06fe869a93434b0be090c44d6caafee Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Mon, 9 Jan 2012 13:08:27 +0100 Subject: [PATCH] Fix systemd pid files. Signed-off-by: Marco van Wieringen --- bacula/platforms/systemd/bacula-dir.service.in | 2 +- bacula/platforms/systemd/bacula-fd.service.in | 2 +- bacula/platforms/systemd/bacula-sd.service.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5