changeset 1119:cffa49e21080

Source additional file for setting THERMOSTAT_HOME for systemd files. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-May/006867.html
author Severin Gehwolf <sgehwolf@redhat.com>
date Fri, 24 May 2013 14:30:12 +0200
parents d329d22447f4
children 98825dada42a
files distribution/systemd/thermostat-agent.service distribution/systemd/thermostat-storage.service
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/distribution/systemd/thermostat-agent.service	Tue May 14 16:34:29 2013 +0200
+++ b/distribution/systemd/thermostat-agent.service	Fri May 24 14:30:12 2013 +0200
@@ -45,6 +45,7 @@
 
 [Service]
 Type=forking
+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
--- a/distribution/systemd/thermostat-storage.service	Tue May 14 16:34:29 2013 +0200
+++ b/distribution/systemd/thermostat-storage.service	Fri May 24 14:30:12 2013 +0200
@@ -45,6 +45,7 @@
 
 [Service]
 Type=forking
+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