#!/bin/sh # # tinyproxy: TinyProxy server # # chkconfig: 2345 10 90 # description: TinyProxy server # # Source function library. . /etc/rc.d/init.d/functions start() { echo -n $"Starting tinyproxy: " daemon "/usr/local/sbin/tinyproxy 2>/var/log/tinyproxy" touch /var/lock/subsys/tinyproxy echo } stop() { echo -n $"Shutting down tinyproxy: " killproc tinyproxy rm -f /var/lock/subsys/tinyproxy echo } restart() { stop start } [ -f /usr/local/sbin/tinyproxy ] || exit 0 # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status tinyproxy ;; restart|reload) restart ;; *) echo $"Usage: $0 {start|stop|restart|reload|status}" exit 1 esac exit 0