freebsd-ports/www/xitami/files/xitami.sh.tmpl
Steve Price 9141fabc31 Initial import of Xitami version 2.3d.
A fast, portable multithreaded web server.

PR:		4770
Submitted by:	Ian Vaudrey <i.vaudrey@cableinet.co.uk>
1998-08-09 00:28:23 +00:00

28 lines
300 B
Bash

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