mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
9141fabc31
A fast, portable multithreaded web server. PR: 4770 Submitted by: Ian Vaudrey <i.vaudrey@cableinet.co.uk>
28 lines
300 B
Bash
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
|
|
|