aboutsummaryrefslogblamecommitdiffstats
path: root/main/bitlbee/bitlbee.initd
blob: 79a439393d035217ea875e702a944812d572b43d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
                  














                                                        
                                              





                                                           
                                                             
                                                       



                                        
#!/sbin/openrc-run

name=bitlbee
daemon=/usr/sbin/$name

. /etc/conf.d/$name

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting ${name}"
		start-stop-daemon --start --quiet \
			--pidfile /var/run/${name}.pid \
			--user nobody:nobody \
			--exec ${daemon} -- ${PORT} ${OPTS}
	eend $?
}

stop() {
	ebegin "Stopping ${name}"
		start-stop-daemon --stop --signal 9 --quiet \
			--pidfile /var/run/$name.pid  \
			--exec ${daemon}
	eend $?
}