freebsd-ports/devel/tcllib/files/tclhttpd.sh
Will Andrews c9a437c5c2 Add Tcllib, a collection of utility modules for Tcl.
PR:		18263
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
2000-06-09 03:35:21 +00:00

17 lines
323 B
Bash

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