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

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 $?
}