mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
28 lines
300 B
Cheetah
28 lines
300 B
Cheetah
|
#!/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
|
||
|
|