diff options
Diffstat (limited to 'testing/sircbot/sircbot.initd')
-rw-r--r-- | testing/sircbot/sircbot.initd | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/testing/sircbot/sircbot.initd b/testing/sircbot/sircbot.initd deleted file mode 100644 index 045f7ee2aa..0000000000 --- a/testing/sircbot/sircbot.initd +++ /dev/null @@ -1,35 +0,0 @@ -#!/sbin/runscript - -daemon=/usr/bin/sircbot -sircbot_user=${sircbot_user:-sircbot} -sircbot_group=${sircbot_group:-sircbot} -pidfile=/var/run/sircbot/sircbot.pid - -depends() { - need net - after firewall -} - -checkconfig() { - if [ -z "$sircbot_channels" ]; then - eerror "Please specify sircbot_channels in /etc/conf.d/sircbot" - return 1 - fi - return 0 -} - -start() { - checkconfig || return 1 - ebegin "Starting sircbot" - start-stop-daemon --start --user $sircbot_user --group $sircbot_group \ - --umask 0002 --pidfile "$pidfile" \ - --exec $daemon -- $sircbot_opts $sircbot_channels - eend $? -} - -stop() { - ebegin "Stopping sircbot" - start-stop-daemon --stop --pidfile "$pidfile" --exec $daemon - eend $? -} - |