freebsd-ports/www/tinyproxy/files/tinyproxy.sh
Volker Stolz cba2463690 - Add startup script and corresponding pkg-message
- Assign maintainer to submitter.
  Thanks to Mitsuru Yoshida for maintaing this port so far.
- SED -> REINPLACE while here

PR:		ports/65746
Submitted by:	Brad Davis
2004-05-06 09:03:51 +00:00

14 lines
301 B
Bash

#!/bin/sh
if [ $# -eq 0 -o x$1 = xstart ]; then
if [ -x %PREFIX%/sbin/tinyproxy ]; then
%PREFIX%/sbin/tinyproxy && echo ' tinyproxy'
fi
fi
if [ x$1 = xstop ]; then
if [ -f /var/run/tinyproxy.pid ]; then
kill `cat /var/run/tinyproxy.pid`
else
# oh well
killall tinyproxy
fi
fi