diff options
Diffstat (limited to 'pkg/leap_mx')
-rw-r--r-- | pkg/leap_mx | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/pkg/leap_mx b/pkg/leap_mx deleted file mode 100644 index da8a3c8..0000000 --- a/pkg/leap_mx +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -pidfile=/var/run/leap_mx.pid \ -rundir=/var/lib/leap_mx/ \ -file=/usr/local/bin/mx.tac \ -logfile=/var/log/leap_mx.log - -[ -r /etc/default/leap_mx ] && . /etc/default/leap_mx - -test -r $file || exit 0 -test -r /etc/leap/ || exit 0 - - -case "$1" in - start) - echo -n "Starting leap_mx: twistd" - HOME="/var/lib/leap_mx/" \ - start-stop-daemon --start --quiet --exec /usr/local/bin/twistd -- \ - --pidfile=$pidfile \ - --rundir=$rundir \ - --python=$file \ - --logfile=$logfile - echo "." - ;; - - stop) - echo -n "Stopping leap_mx: twistd" - start-stop-daemon --stop --quiet \ - --pidfile $pidfile - echo "." - ;; - - restart) - $0 stop - $0 start - ;; - - force-reload) - $0 restart - ;; - - *) - echo "Usage: /etc/init.d/leap_mx {start|stop|restart|force-reload}" >&2 - exit 1 - ;; -esac - -exit 0 |