diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-05-06 11:10:00 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-05-07 14:03:32 -0300 |
commit | d926aef5812fb648c278c289b08f93e8d7b02948 (patch) | |
tree | 06d639d7667dbe6e2926d26ccec10ce1095e4e20 | |
parent | 549952c9acc0eb8dab750b8f43f1162f910f0fed (diff) |
Improve leap_mx init script
-rw-r--r-- | pkg/leap_mx | 7 |
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 |