#!/bin/sh ### BEGIN INIT INFO # Provides: rnetproxy # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Receitanet Proxy ### END INIT INFO RNETPROXY_BIN=/usr/sbin/rnetproxy if [ -f /etc/init.d/functions ] then . /etc/init.d/functions fi case $1 in start) daemon $RNETPROXY_BIN ;; stop) killproc $RNETPROXY_BIN ;; restart) $0 stop $0 start ;; *) echo Not implemented. Use one of start, stop or restart. exit 1 ;; esac