5
# Required-Start: $remote_fs $syslog
6
# Required-Stop: $remote_fs $syslog
7
# Default-Start: 2 3 4 5
9
# Short-Description: start and stop the HP Socks daemon
10
# Description: hpsockd is a Socks Daemon
13
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
14
DAEMON=/usr/sbin/hpsockd
16
DESC="HP SOCKS daemon"
18
test -f $DAEMON || exit 0
24
if [ -f /etc/hpsockd.conf ]; then
25
echo -n "Starting $DESC: "
26
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
30
echo "Not starting $DESC: no config file."
34
echo -n "Stopping $DESC: "
35
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
40
echo "Reloading $DESC configuration files."
44
echo -n "Restarting $DESC: "
45
start-stop-daemon --stop --quiet --pidfile \
46
/var/run/$NAME.pid --exec $DAEMON
48
start-stop-daemon --start --quiet --pidfile \
49
/var/run/$NAME.pid --exec $DAEMON
54
echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2