How to Install Ventrilo as a Service on CentOS 6


In this tutorial, we’ll be installing Ventrilo on CentOS 6 x64.


A CentOS 6 system, with more than 768 megabytes of RAM.


Step one – retrieving the latest TAR file from their site:

Unfortunately, downloading the TAR directly from their site isn’t possible with wget, nor cURL. We’ll need to download this manually and upload it via/ SFTP or FTP.

Step two – extracting the tarball (change version accordingly):
tar -xvf ventrilo_srv-3.0.3-Linux-i386.tar.gz 
Step three – moving the libraries:
mv ventsrv/ventrilo_status /usr/bin/ventrilo_statusmv ventsrv/ventrilo_srv /usr/bin/ventrilo_srvmkdir /etc/ventrilomv ventrilo_srv.ini /etc/ventrilo/ventrilo_srv.ini
Step four – setting the appropiate permissions:
chmod +x /usr/bin/ventrilo_srv /usr/bin/ventrilo_statuschown -R ventrilo:ventrilo /etc/ventrilo
Step five – creating the service:
vi /etc/init.d/ventrilo

Paste the following:

#!/bin/bash# Ventrilo Daemon# chkconfig: 2345 95 20. /etc/rc.d/init.d/functionsVENPATH=/etc/ventriloVENBIN=/usr/bin/ventrilo_srvRETVAL=0prog="ventrilo"runlevel=$(set -- $(runlevel); eval "echo $$#" )start(){echo -n $"Starting $prog: "$VENBIN -f$VENPATH/ventrilo_srv -d && success || failureRETVAL=$?[ "$RETVAL" = 0 ] && touch /var/lock/subsys/ventrilo_srvecho# renice -5 `cat $VENPATH/`}stop(){echo -n $"Stopping $prog: "if [ -n "`pidfileofproc $VENBIN`" ] ; thenkillproc $VENBINelsefailure $"Stopping $prog"fiRETVAL=$?[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/ventrilo_srvecho}case "$1" instart)start;;stop)stop;;*)echo "Usage: $0 "RETVAL=1esacexit $RETVAL

Save and exit (hit CTRL, followed by W, Q, and the Enter key).

Optional Step – making it start automatically on boot:
chkconfig ventrilo on

Starting and stopping Ventrilo


service ventrilo start


service ventrilo stop


This concludes our tutorial, thank you for reading.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.