summaryrefslogtreecommitdiff
blob: 327e5f3a53929bb864fd4cf36ff6906103a766e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	use dns net
}

start() {
	ebegin "Starting ${SVCNAME}"
 	start-stop-daemon --start --quiet --exec /usr/bin/ultimateircd \
		--chuid ${ULTIMATEIRCD_USER}
	eend $?
}

stop() {
	ebegin "Shutting down ${SVCNAME}"
	start-stop-daemon --stop --pidfile /var/run/ultimateircd/ircd.pid
	eend $?
}