blob: 4130223817b5c904213d1904145e99bef434bd55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/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"
start-stop-daemon --start --chuid ventrilo --nicelevel "${NICE}" \
--exec /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 $?
}
|