Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 194654 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-irc/inspircd/files/init.d_inspircd (-16 / +11 lines)
Lines 3-31 Link Here
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/init.d_inspircd,v 1.3 2007/07/11 08:10:47 hansmi Exp $
4
# $Header: /var/cvsroot/gentoo-x86/net-irc/inspircd/files/init.d_inspircd,v 1.3 2007/07/11 08:10:47 hansmi Exp $
5
5
6
opts="${opts} rehash"
7
8
depend() {
6
depend() {
9
	need net
7
        need net
10
    provide ircd
8
    provide ircd
11
}
9
}
12
10
13
start() {
11
start() {
14
	ebegin "Starting InspIRCd"
12
        ebegin "Starting InspIRCd"
15
	start-stop-daemon --start --quiet --chuid inspircd \
13
        start-stop-daemon --start --quiet --chuid inspircd \
16
        --exec /usr/bin/inspircd -- \
14
        --exec /usr/bin/inspircd \
15
        --pidfile /var/run/inspircd.pid --make-pidfile -- \
17
        --logfile /var/log/inspircd/ircd.log &>/dev/null
16
        --logfile /var/log/inspircd/ircd.log &>/dev/null
18
	eend $?
17
        sleep 1
18
        echo `pidof inspircd` > /var/run/inspircd.pid
19
        eend $?
19
}
20
}
20
21
21
stop() {
22
stop() {
22
	ebegin "Stopping InspIRCd"
23
        ebegin "Stopping InspIRCd"
23
	start-stop-daemon --stop --quiet --pidfile /var/run/inspircd/ircd.pid
24
        start-stop-daemon --stop --quiet --pidfile /var/run/inspircd.pid
24
	eend $?
25
        eend $?
25
}
26
27
rehash() {
28
	ebegin "Rehashing InspIRCd"
29
	kill -s SIGHUP $(</var/run/inspircd/ircd.pid)
30
	eend $?
31
}
26
}

Return to bug 194654