aboutsummaryrefslogtreecommitdiffstats
path: root/main/charybdis/charybdis.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-03-11 09:24:05 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-03-11 09:24:05 +0000
commita08aa8174214f9ef08a4375068215f8bcee74a8c (patch)
tree556b34c12ec6c3ef80e2260195f63fba86dbaf23 /main/charybdis/charybdis.initd
parent713e414696d7461620f1986e573ccde9ff6a486c (diff)
downloadaports-a08aa8174214f9ef08a4375068215f8bcee74a8c.tar.bz2
aports-a08aa8174214f9ef08a4375068215f8bcee74a8c.tar.xz
main/charybdis: moved from testing
Diffstat (limited to 'main/charybdis/charybdis.initd')
-rw-r--r--main/charybdis/charybdis.initd22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/charybdis/charybdis.initd b/main/charybdis/charybdis.initd
new file mode 100644
index 0000000000..8c3e4460c4
--- /dev/null
+++ b/main/charybdis/charybdis.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/charybdis/files/charybdis-ircd.initd,v 1.2 2008/01/08 21:17:02 jokey Exp $
+
+depend() {
+ use net
+ provide ircd
+}
+
+start() {
+ ebegin "Starting ircd-charybdis"
+ start-stop-daemon --start --quiet -u ${CHARYBDIS_USER} --exec /usr/bin/charybdis-ircd -- -configfile ${CHARYBDIS_CONF}>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ircd-charybdis"
+ start-stop-daemon --stop --quiet --pidfile ${CHARYBDIS_PID}
+ eend $?
+}
+