#!/sbin/runscript # blacklist is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # blacklist is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Copyright: Dustin Thomson # Homepage: http://dustint.com # Date: 2008-06-03 # Version 0.0.1 EXEC=/usr/sbin/blacklist PID=/var/run/blacklist.pid depend(){ need net } checkconfig(){ if [ ! -e /usr/sbin/blacklist ] ; then eerror "blacklist not found in /usr/sbin/blacklist" return 1 fi } start() { checkconfig || return 1 ebegin "Starting Blacklist" $EXEC & eend $? } stop() { ebegin "Stopping Blacklist" start-stop-daemon --stop --retry 20 --quiet --pidfile $PID eend $? }