summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé María Alonso <nimiux@gentoo.org>2012-07-07 12:35:20 +0000
committerJosé María Alonso <nimiux@gentoo.org>2012-07-07 12:35:20 +0000
commit317e2c80fe8b6bc4245f7411641ca120c0b10fce (patch)
treea22895feec1786017e0827e96db68436b1c1e6d7 /net-irc/inspircd/files/inspircd-2.0.7-init
parentKeyword ~mips (diff)
downloadgentoo-2-317e2c80fe8b6bc4245f7411641ca120c0b10fce.tar.gz
gentoo-2-317e2c80fe8b6bc4245f7411641ca120c0b10fce.tar.bz2
gentoo-2-317e2c80fe8b6bc4245f7411641ca120c0b10fce.zip
[net-irc/inspircd] Revision bump to 2.0.7.
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'net-irc/inspircd/files/inspircd-2.0.7-init')
-rw-r--r--net-irc/inspircd/files/inspircd-2.0.7-init38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-irc/inspircd/files/inspircd-2.0.7-init b/net-irc/inspircd/files/inspircd-2.0.7-init
new file mode 100644
index 000000000000..3180e5c14815
--- /dev/null
+++ b/net-irc/inspircd/files/inspircd-2.0.7-init
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/inspircd-2.0.7-init,v 1.1 2012/07/07 12:35:20 nimiux Exp $
+
+extra_commands="rehash version"
+
+depend() {
+ need net
+ provide ircd
+}
+
+start() {
+ ebegin "Starting InspIRCd"
+ start-stop-daemon --start --quiet --user inspircd \
+ --exec /usr/bin/inspircd -- \
+ --config /etc/inspircd/inspircd.conf \
+ --logfile /var/log/inspircd/ircd.log &> /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping InspIRCd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/inspircd
+ eend $?
+}
+
+rehash() {
+ ebegin "Rehashing InspIRCd"
+ /usr/lib/inspircd/inspircd.launcher/inspircd rehash &> /dev/null
+ eend $?
+}
+
+version() {
+ ebegin "Retrieve InspIRCd version"
+ /usr/lib/inspircd/inspircd.launcher/inspircd version
+ eend $?
+}