blob: 6a1844a8125a9c4e643067e053fe8763a01f31a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/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/inspircd/files/init.d_inspircd,v 1.4 2007/11/12 21:47:33 hansmi Exp $
opts="${opts} rehash version"
depend() {
need net
provide ircd
}
start() {
ebegin "Starting InspIRCd"
start-stop-daemon --start --quiet --chuid inspircd \
--exec /usr/bin/inspircd -- \
--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 $?
}
|