summaryrefslogtreecommitdiff
path: root/www/xitami/files/xitami.sh.tmpl
blob: b1f53c1f5b0efff684c5c6ce3926a72a9cc2bf2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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