File sockd.init of Package dante

#! /bin/sh
# Copyright (c) 1995-2001 SuSE, Germany.
#
# Author: Matthias Eckermann, SuSE Linux Solutions AG
#
### BEGIN INIT INFO
# Provides:       sockd
# Required-Start: $network
# Required-Stop:  $network
# Default-Start:  2 3 5
# Default-Stop:
# Short-Description: Dante socks server
# Description:    This shell script takes care of starting and stopping the Dante socks server.
### END INIT INFO
#
. /etc/rc.status
# The echo return value for success (defined in /etc/rc.config).
return=$rc_done
case "$1" in
    start)
	echo -n "Starting sockd / dante server"
	startproc /usr/sbin/sockd -D
	rc_status -v
	;;
    stop)
	echo -n "Shutting down sockd / dante server"
	killproc -TERM /usr/sbin/sockd
	rc_status -v
	;;
    status)
	checkproc /usr/sbin/sockd
	rc_status -v
	;;
    restart|force-reload)
	$0 stop
	$0 start
	rc_status
	;;
    reload)
	;;
    *)
	echo "Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 1
	;;
esac

rc_exit