Anope IRC Services
Anope Support => 2.0.x/1.9.x Support => Topic started by: someone on October 24, 2010, 11:53:21 PM
-
As I am testing anope on a gentoo box, i needed to write my own init script.
it demands that anope is in "/anope" and your nonprivileged anope-user is "anope"
Pretty minimalistic, but enought, to run anope on reboot.
One might find this one useful.
#!/sbin/runscript
# anope IRC-Services init script for gentoo.
# Author: someone (someone@somenet.org)
depend() {
need ircd
}
start() {
ebegin "Starting anope"
cd /anope
rm -rf data/modules/runtime/*
start-stop-daemon --start --background --make-pidfile --user anope --pidfile /var/run/anope.pid --exec ./anope -- -n
eend $?
}
stop() {
ebegin "Stopping anope"
start-stop-daemon --stop --pidfile /var/run/anope.pid
# killall -u anope
eend $?
}
opts="${opts} restartd"
restartd() {
stop
sleep 8 # Wait 8 seconds before starting again
start
}
Ty for your effort with anope 1.9!