changeset 1350:8bbde930afa2

systemd fixes This patch simply corrects pid file locations that are used by systemd. Reviewed-by: omajid, jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-November/008868.html
author Elliott Baron <ebaron@redhat.com>
date Thu, 21 Nov 2013 10:53:18 -0500
parents 9698d05f0d9b
children 6c88f22572e0
files distribution/scripts/thermostat-agent-sysd distribution/systemd/thermostat-agent.service distribution/systemd/thermostat-storage.service
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/distribution/scripts/thermostat-agent-sysd	Wed Nov 20 12:27:59 2013 -0500
+++ b/distribution/scripts/thermostat-agent-sysd	Thu Nov 21 10:53:18 2013 -0500
@@ -50,7 +50,7 @@
 
 export THERMOSTAT_HOME
 THERMOSTAT_BIN="$THERMOSTAT_HOME/bin/thermostat"
-AGENT_PID_FILE="$THERMOSTAT_HOME/agent/run/thermostat-agent.pid"
+AGENT_PID_FILE="$THERMOSTAT_HOME/run/thermostat-agent.pid"
 
 function start() {
     if [ -e "$AGENT_PID_FILE" ]; then
--- a/distribution/systemd/thermostat-agent.service	Wed Nov 20 12:27:59 2013 -0500
+++ b/distribution/systemd/thermostat-agent.service	Thu Nov 21 10:53:18 2013 -0500
@@ -48,7 +48,7 @@
 EnvironmentFile=-/etc/sysconfig/thermostat
 ExecStart=@thermostat.home@/bin/thermostat-agent-sysd start
 ExecStop=@thermostat.home@/bin/thermostat-agent-sysd stop
-PIDFile=@thermostat.home@/agent/run/thermostat-agent.pid
+PIDFile=@thermostat.home@/run/thermostat-agent.pid
 User=@thermostat.system.user@
 Group=@thermostat.system.group@
 
--- a/distribution/systemd/thermostat-storage.service	Wed Nov 20 12:27:59 2013 -0500
+++ b/distribution/systemd/thermostat-storage.service	Thu Nov 21 10:53:18 2013 -0500
@@ -48,7 +48,7 @@
 EnvironmentFile=-/etc/sysconfig/thermostat
 ExecStart=@thermostat.home@/bin/thermostat storage --start
 ExecStop=@thermostat.home@/bin/thermostat storage --stop
-PIDFile=@thermostat.home@/storage/run/db.pid
+PIDFile=@thermostat.home@/run/db.pid
 User=@thermostat.system.user@
 Group=@thermostat.system.group@