diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 13:17:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-25 13:18:25 +0000 |
commit | a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae (patch) | |
tree | 7896d53e29b53cc98fe118a3c054ef9df058c27b /testing/ircservices/ircservices.initd | |
parent | e497397c86d49bffc37b036667e331471dbaf149 (diff) | |
download | aports-a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae.tar.bz2 aports-a4c70cb0129bc2a6b25b105fb8bfbfd5773897ae.tar.xz |
testing/ircservices: new aport
Services for IRC (NickServ, ChanServ, MemoServ)
http://www.ircservices.za.net/
ref #189
Diffstat (limited to 'testing/ircservices/ircservices.initd')
-rw-r--r-- | testing/ircservices/ircservices.initd | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/ircservices/ircservices.initd b/testing/ircservices/ircservices.initd new file mode 100644 index 0000000000..8c2a11e8ba --- /dev/null +++ b/testing/ircservices/ircservices.initd @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.5 2006/11/05 22:23:08 swegener Exp $ + +depend() { + need net + after firewall + use ircd +} + +start() { + ebegin "Starting IRC Services" + start-stop-daemon --start --quiet --exec /usr/bin/ircservices \ + --chuid ircservices \ + -- \ + -dir=/var/lib/ircservices \ + -log=/var/log/ircservices/ircservices.log \ + &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping IRC Services" + start-stop-daemon --stop --quiet \ + --pidfile /var/lib/ircservices/ircservices.pid + eend $? + rm -f /var/lib/ircservices/ircservices.pid +} |