mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
17 lines
323 B
Bash
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
|