blob: 328374467c8e04f64c47217bbf3b9b432e29a852 (
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/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"
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 $?
}
|