#!/sbin/runscript opts="ventstatus" 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() { ebegin "Starting Ventrilo VoIP Server" if [ ! -w /var/log/ventrilo.log ]; then touch /var/log/ventrilo.log chown ventrilo:ventrilo /var/log/ventrilo.log chmod 644 /var/log/ventrilo.log fi start-stop-daemon --start --chuid ventrilo --nicelevel ${VENT_NICENESS} --quiet \ --exec /usr/sbin/ventrilo_srv -- -f/etc/ventrilo/ventrilo -d eend $? } ventstatus() { ebegin "Checking Ventrilo server status" /usr/sbin/ventrilo_status -c2 -tlocalhost eend $? } stop() { ebegin "Stopping Ventrilo VoIP Server" start-stop-daemon --stop --pidfile /etc/ventrilo/ventrilo.pid eend $? }