Forums

Eli
Eli
Offline
Resolved
0 votes
Hello all,

I am trying to set up a ventrilo server to go along with my other servers I have running on my machine.. I made it all the way through the tutorial so I have all the needed files and everything. I think this will be just a quick question in order to get this going.

When editing the script file there are two options you need to set yourself


# CONFIG
prog="Ventrilo Server"
vent_path=/home/ventrilo/ventsrv # <---- Replace with the path to your /ventsrv directory
vent_user=ventrilo # <---- Replace with sudo user vent_bin=$vent_path/
vent_server=ventrilo_srv
vent_log=$vent_path/ventrilo_srv.log


Okay so my question is with the first option do I need to point it to a specific file or just to my ventsrv directory? because thats where its pointing as of right now.. So I believe thats good.

My second question is vent_user who does this need to be? yes I have vent setup as a user and everything.. I am not going to put root here and give ventrilo total access.. but i'm wondering what this needs to point to in order to work.

Another question and this is probably related to the fact that the config file is not configured correctly.. when I type "service ventrilo restart" this is the output I get:

[root@system ~]# service ventrilo restart
Stopping Ventrilo Server: [FAILED]
chmod: cannot access `/home/ventrilo/ventsrv/ventrilo_srv.log': No such file or directory
Starting Ventrilo Server: [ OK ]

I think it has something to do with the fact that the config file isn't configured correctly.. anyway, I'm very new to reading scripts like this, so if anyone could lend any help that would be great! Thank you all in advance!

~Eli
Thursday, March 10 2011, 11:26 PM
Share this post:
Responses (3)
  • Accepted Answer

    Friday, March 11 2011, 04:01 PM - #Permalink
    Resolved
    0 votes
    When I do the following:

    ps aux | grep ventrilo

    I get something similar to this:

    ventrilo 8169 0.0 0.1 3520 848 ? Ss 08:44 0:00 /home/ventrilo/ventsrv/ventrilo_srv -f/home/ventrilo/ventsrv/ventrilo_srv -d

    Here, Ventrilo is running as the ventrilo user. If I kill the process (kill 8169) it will stop the service. perhaps your script doesn't stop the process because there is a mismatch in the script with a variable. For example, vent_pid. When vent is running it will have a file called ventrilo_srv.pid. This will be located in your ventrilo path. If your variable for vent_path is wrong, then it will not make that vent pid. This can also happen if it cannot create the vent_pid because it doesn't have rights to do so in the first place.

    If you have created the files as root and the permissions on the directory do not allow your ventrilo user to create the ventrilo_srv.pid file, then the stop program will not be able to read the pid number of the ventrilo program from the pid file cause it doesn't exist.

    To change the permissions, run the following and replace the stuff with your own settings:

    chown -R VENTRILO_USER /path/to/ventrilo/service

    in my case it was ... chown -R ventrilo /home/ventrilo/ventsrv/

    As for Speex....this is controlled in your ventrilo_srv.ini file.

    http://support.multiplay.co.uk/index.php?_a=pdfexport&_m=knowledgebase&kbarticleid=5

    I use:
    VoiceCodec=3
    VoiceFormat=21
    The reply is currently minimized Show
  • Accepted Answer

    Eli
    Eli
    Offline
    Friday, March 11 2011, 03:11 AM - #Permalink
    Resolved
    0 votes
    Okay, I have everything setup..

    One question though, whenever I try and shutdown the server it always comes up as failed.. but when service ventrilo start is run a green okay shows up so that tells me that its running, however when I run service ventrilo status.. it says ventrilo is not running. Just kinda weird that it says this.. I hope that it is running.. Going to have some people try it out tonight.

    How exactly do I set my server to speex? I'm not sure how to do that, because that would be good to be able to support Macs

    thanks
    -Eli
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 11 2011, 02:41 AM - #Permalink
    Resolved
    0 votes
    Just the directory. This is just a variable for running the script.

    You probably shouldn't run this as root. If someone finds an exploit in their vent client, they would own your system. Instead, go to the user manager in the webconfig and create a user called 'vent' or 'ventrilo'. Don't give them any services or put them into any groups.

    Then set the user in the init file to be that username.

    from the howto...

    “chmod: cannot access `/home/ventrilo/ventsrv/ventrilo_srv.log': No such file or directory”

    ignore it, because the file is not there, as you just created it. Then you should see the system come back as “OK” in green.

    next time you restart it, the log file should be there.

    Also, a note about compatibility. I recommend you set your vent server to speex from the beginning. It will save you pain later when you have someone using a Mac connecting to your server.
    The reply is currently minimized Show
Your Reply