Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2d6964a3e5
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.631 kB
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
DAEMON=%(bin)s/ajaxterm
PORT=%(port)s
PIDFILE=/var/run/ajaxterm.pid
[ -x "$DAEMON" ] || exit 0
#. /lib/lsb/init-functions
case "$1" in
start)
echo "Starting ajaxterm on port $PORT"
start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --uid=nobody || return 2
;;
stop)
echo "Stopping ajaxterm"
start-stop-daemon --stop --pidfile $PIDFILE
rm -f $PIDFILE
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 3
;;
esac
:
Jump to Line
Something went wrong with that request. Please try again.