summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorJonathan Billings <jsbillin@umich.edu>2013-01-15 15:08:44 -0500
committerJonathan Billings <jsbillin@umich.edu>2013-01-15 15:08:44 -0500
commit32d0c7bc23cc2a010125f073be99283ce6360387 (patch)
tree7dfff0f8371284e4e103fbf728eb851e4f6753ff /redhat
parente4f278928f547d60d58afcbaf0f3c7d8ddaae962 (diff)
downloadbcfg2-32d0c7bc23cc2a010125f073be99283ce6360387.tar.gz
bcfg2-32d0c7bc23cc2a010125f073be99283ce6360387.tar.bz2
bcfg2-32d0c7bc23cc2a010125f073be99283ce6360387.zip
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.
Diffstat (limited to 'redhat')
-rw-r--r--redhat/systemd/bcfg2-server.service4
1 files changed, 2 insertions, 2 deletions
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