summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorTomas Touceda <chiiph@leap.se>2013-05-06 11:10:00 -0300
committerTomas Touceda <chiiph@leap.se>2013-05-06 11:10:00 -0300
commitaae22189e091cf717326b3158b944f0d9c9537f9 (patch)
tree5b25bd9951c53b315c6813338295d2744bef6435 /pkg
parentaed42557a7e8a17561c225426f66db1187006d9c (diff)
Improve leap_mx init script
Diffstat (limited to 'pkg')
-rw-r--r--pkg/leap_mx7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/leap_mx b/pkg/leap_mx
index d2c4bc3..d18d44f 100644
--- a/pkg/leap_mx
+++ b/pkg/leap_mx
@@ -4,7 +4,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
pidfile=/var/run/leap_mx.pid \
rundir=/var/lib/leap_mx/ \
-file=/etc/leap/mx \
+file=/etc/leap/mx.tac \
logfile=/var/log/leap_mx.log
[ -r /etc/default/leap_mx ] && . /etc/default/leap_mx
@@ -17,7 +17,8 @@ test -r /etc/leap/ || exit 0
case "$1" in
start)
echo -n "Starting leap_mx: twistd"
- start-stop-daemon --start --quiet --exec /usr/bin/twistd -- \
+ HOME="/var/lib/leap_mx/" \
+ start-stop-daemon --start --quiet --exec /usr/bin/twistd -- \
--pidfile=$pidfile \
--rundir=$rundir \
--python=$file \
@@ -47,4 +48,4 @@ case "$1" in
;;
esac
-exit 0 \ No newline at end of file
+exit 0