aboutsummaryrefslogtreecommitdiffstats
path: root/net-irc/ircu/files/ircu.init.d
blob: 6b6ca786b81c1e4c3a97b9c1a3dff06b3542dc2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/runscript

depend() {
	need net
}

start() {
	ebegin "Starting ircu-ircd"
	start-stop-daemon --start --quiet --chuid ${IRCU_UID} --exec /usr/bin/ircu-ircd
	eend $? "Failed to start ircu-ircd"
}

stop() {
	ebegin "Stopping ircu-ircd"
	start-stop-daemon --stop --quiet --exec /usr/bin/ircu-ircd
	eend $? "Failed to stop ircu-ircd"
}