hey,
just made a rc script for gentoo to run the perl script:
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
before sshd
}
start() {
start-stop-daemon --start --background --pidfile /var/run/monitor.pid --make-pidfile --exec /usr/scripts/monitor.pl
eend $?
}
stop() {
ebegin "Stopping IP Blocker"
start-stop-daemon --stop --pidfile /var/run/monitor.pid --name /usr/scripts/monitor.pl
eend $?
}
It should be noted, that this rc script will probably only work on gentoo systems. i still haven't got the stop feature working corectly, but it does start the script at boot once you've added the rc script to a run level (you should add it to the default run level).