summaryrefslogtreecommitdiff
blob: e265109ada0ac0ad5f18c35dc6bf2fb0dad0ee46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

depend() {
        # the daemon needs the internet to function
	# Not sure if net is needed to start but it is required for it to work properly.
        need net   
}

start() {
        # display to the user what you're doing
        ebegin "Starting Ventrilo VoIP Server"  
        nice -n ${NICE} /opt/ventrilo-server/ventrilo_srv -f/opt/ventrilo-server/ventrilo_srv -d 
	eend $?
}

stop() {
        # display a message to the user
        ebegin "Stopping Ventrilo VoIP Server"
        start-stop-daemon --stop --pidfile /opt/ventrilo-server/ventrilo_srv.pid
        eend $?
}