summaryrefslogtreecommitdiff
path: root/devel/tcllib/files/tclhttpd.sh
blob: 6053456fe6393e0e60f8919b42e42e57a4840be3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
case $1 in
stop)
	if ! [ -f /var/run/tclhttd.pid ] ; then
		echo tclhttd does not seem to be running
		exit 1
	fi
	echo "Not sure if `cat /var/run/tclhttd.pid` \
		(from /var/run/tclhttd.pid) is what you wish killed."
	exit 2
	;;
start|"")
	COMMAND_LINE &
	test -n "$!" && echo $! > /var/run/tclhttd.pid
	;;
esac