From 32d0c7bc23cc2a010125f073be99283ce6360387 Mon Sep 17 00:00:00 2001 From: Jonathan Billings Date: Tue, 15 Jan 2013 15:08:44 -0500 Subject: Systemd: Fix path to PID file Due to the way that the server drops privs, the PID file has to be saved into a subdirectory of /run. --- redhat/systemd/bcfg2-server.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redhat') diff --git a/redhat/systemd/bcfg2-server.service b/redhat/systemd/bcfg2-server.service index ff0c52835..7ca649cc9 100644 --- a/redhat/systemd/bcfg2-server.service +++ b/redhat/systemd/bcfg2-server.service @@ -7,8 +7,8 @@ Type=forking StandardOutput=syslog StandardError=syslog EnvironmentFile=-/etc/sysconfig/bcfg2-server -PIDFile=/run/bcfg2-server.pid -ExecStart=/usr/sbin/bcfg2-server -D /run/bcfg2-server.pid $BCFG2_SERVER_OPTIONS +PIDFile=/run/bcfg2-server/bcfg2-server.pid +ExecStart=/usr/sbin/bcfg2-server -D /run/bcfg2-server/bcfg2-server.pid $BCFG2_SERVER_OPTIONS [Install] WantedBy=multi-user.target -- cgit v1.2.3-1-g7c22