summaryrefslogtreecommitdiff
path: root/net-im/jabberd/files/jabberd-1.4.4.init
Side-by-side diff
Diffstat (limited to 'net-im/jabberd/files/jabberd-1.4.4.init') (more/less context) (ignore whitespace changes)
-rw-r--r--net-im/jabberd/files/jabberd-1.4.4.init29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-im/jabberd/files/jabberd-1.4.4.init b/net-im/jabberd/files/jabberd-1.4.4.init
new file mode 100644
index 0000000..a25ac84
--- a/dev/null
+++ b/net-im/jabberd/files/jabberd-1.4.4.init
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabberd-1.4.4.init,v 1.1 2006/09/27 22:31:36 nelchael Exp $
+
+depend() {
+
+ need net
+ provide jabber-server
+
+}
+
+start() {
+
+ ebegin "Starting Jabber Server"
+ start-stop-daemon --start \
+ -c jabber:jabber \
+ -x /usr/bin/jabberd -- -B -c /etc/jabber/jabberd.xml
+ eend $?
+
+}
+
+stop() {
+
+ ebegin "Stopping Jabber Server"
+ start-stop-daemon --stop -x /usr/bin/jabberd
+ eend $?
+
+}