diff options
Diffstat (limited to 'www/xitami/files/xitami.sh.tmpl')
-rw-r--r-- | www/xitami/files/xitami.sh.tmpl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/www/xitami/files/xitami.sh.tmpl b/www/xitami/files/xitami.sh.tmpl new file mode 100644 index 000000000000..b1f53c1f5b0e --- /dev/null +++ b/www/xitami/files/xitami.sh.tmpl @@ -0,0 +1,27 @@ +#!/bin/sh +# + +case "$1" in + +start) + if [ -x PREFIX/xitami/xitami ] + then + cd PREFIX/xitami + ./xitami -s && echo -n " xitami" + fi + ;; + +stop) + if [ -r /var/run/xitami.pid ] + then + kill `cat /var/run/xitami.pid` && echo -n " xitami" + fi + ;; + +*) + echo "usage: $0 {start|stop}" 1>&2 + exit 64 + ;; + +esac + |