1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/devel/tcllib/files/tclhttpd.sh

17 lines
323 B
Bash
Raw Normal View History

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