r/AskLinuxUsers • • Nov 30 '16
Question AutoStart Ventrilo Server (Ubuntu Server 16.04)
I just spent about three hours trying to figure out how to get my ventrilo server to autostart when I boot up my dedicated server (online.net). I have tried a bunch of things I found online, but nothing seems to work right. Currently I have ventrilo at /home/user/ventrilo - it works fine if i manually run the command (./ventrilo_srv -d), but I really need it to autostart in the event the server is reset.
Can anyone help me? I will gladly make a donation to you via paypal or to a charity of your choice. I am losing my mind here.
Thanks!
1
u/BowserKoopa Dec 01 '16
Tangentially speaking, you should use mumble instead of ventrilo. Its terribly buggy software with poor quality.
2
u/muffinstatewide32 Dec 02 '16
scrap the whole thing and move to Discord /s
serious answer:
While i've not done this myself for ventrilo here's a basic overview of what you're gonna need to make ventrilo a service and have it start with the system and not require a login.
/optor/usr/localit really doesnt matter as long as it works.For ventrilo to be considered a service it needs a unit file and the unit file will live in
/usr/lib/systemd/user/and is called by a name.type scheme, so in this case we could call itventrilo.service.while I havent tested it the file will look something like the code below and need the permission -rw-r--r-- (chmod 644 will set this correctly)
For the service to start with the system it needs to be enabled we use
systemctl enable ventriloto get that done.You might not have to create that file but I suspect it doesn't have one.
If you need further assistance just ask but I might need to spin up a VM just to double check my advice
1
u/SKY_DUDE Nov 30 '16
There is a script that runs at startup by default, "/etc/rc.local". Try putting the command to start the server in the space between the last comment and exit 0. If that doesn't work, i'll spin up a vm and try to duplicate what you are seeing.
1
u/VelmaRodriguez001 Dec 25 '16
Looks like the tail is connected to the right leg of the pinguin hello