1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/www/xitami/files/xitami.sh.tmpl

28 lines
300 B
Cheetah
Raw Normal View History

#!/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