diff options
author | Richard Narron <richard@aaazen.com> | 2014-06-09 09:56:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-06-12 06:51:48 +0700 |
commit | a47374365689de902679b1c48b47b2c9df60a15c (patch) | |
tree | 91126174b3b797f4c6c39f06c72dce4b84366134 /development/regina-rexx/rc.rxstack | |
parent | a06ae361c8e33cd413bc3b612baf4036c4d3ad01 (diff) | |
download | slackbuilds-a47374365689de902679b1c48b47b2c9df60a15c.tar.gz |
development/regina-rexx: Updated for version 3.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/regina-rexx/rc.rxstack')
-rw-r--r-- | development/regina-rexx/rc.rxstack | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/development/regina-rexx/rc.rxstack b/development/regina-rexx/rc.rxstack new file mode 100644 index 0000000000..13a59166a5 --- /dev/null +++ b/development/regina-rexx/rc.rxstack @@ -0,0 +1,50 @@ +#!/bin/sh +# +# description: Regina Stack daemon. +# processname: rxstack + +# 2014-06-09 R Narron Rewrite for Slackware + +DAEMON=/usr/bin/rxstack +RETVAL=0 + +# start rxstack +rxstack_start() { + if [ -x $DAEMON ]; then + echo -n "Starting Regina Stack: $DAEMON" + $DAEMON -d + RETVAL=$? + fi +} + +# stop rxstack +rxstack_stop() { + echo -n "Shutting down Regina Stack: " + killall -2 $DAEMON + RETVAL=$? +} + +# restart rxstack +rxstack_restart() { + rxstack_stop + sleep 1 + rxstack_start + RETVAL=$? +} + +case "$1" in + start) + rxstack_start + ;; + stop) + rxstack_stop + ;; + restart) + rxstack_restart + ;; + *) + echo "Usage: $0 {start|stop|restart}" + RETVAL=1 +esac + +exit $RETVAL |