#!/sbin/runscript # # newiplookup init.d script - for Gentoo # # Copyright Defcronyke Webmaster 2011 # # Version 1.0 # # Quickstart: Copy this file into: # /etc/init.d/ # # then make it executable: # chmod 755 newiplookup # # finally, install into runlevel: # rc-update add newiplookup default #________________________________________________________ # $Header: $ depend() { need net } start() { ebegin "Starting newiplookup" start-stop-daemon --start --quiet --pidfile /var/run/newiplookup.pid --exec /root/scripts/newiplookup.sh& sleep 1 eend $? } stop() { ebegin "Stopping newiplookup" start-stop-daemon --stop --quiet --pidfile /var/run/newiplookup.pid sleep 1 eend $? } restart() { ebegin "Stopping newiplookup" start-stop-daemon --stop --quiet --pidfile /var/run/newiplookup.pid sleep 1 ebegin "Starting newiplookup" start-stop-daemon --start --quiet --pidfile /var/run/newiplookup.pid --exec /root/scripts/newiplookup.sh& sleep 1 eend $? }