Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I really don't know much about linux, and this is beyond my scope. I just got a virtual Linux server, and need a program to start up automatically during reboot. The program is a Ventrilo server. The file is Vent/ventsrv/ventrilo_srv
I have been told there are 3 ways to make this startup automatically. A script, a cron job, or chkconfig. My host is recommending either a cron job or chkconfig.
The only thing I've been able to try: chkconfig
In the first SSH window, I would start up ventrilo_srv. In a 2nd SSH window, I would login as root in order to be able to use the chkconfig --list command, but ventilo_srv is not listed.
cron
The instructions I've found online seem simple enough. I figured the command line would be as simple as:
@reboot Vent/ventsrv/ventrilo_srv
But I can't find a detailed step by step guide to get out of the cron editor and have it saved. Help on the best way to do this would be greatly appreciated.
since there isn't any init script to start the service, you cannot use the chkconfig method. You need to stick on to the cron job method
To edit the crontab use
# crontab -e
Now add the following line
@reboot ~/Vent/ventsrv/ventrilo_srv
Note: I assume that the script you use to start the service is in the given location under you home directory. So either use the "~" symbol or replace it with the complete path.
Now I just need to verify the directory. I rebooted the server and it did not start, so I'm almost sure it is a problem with the directory.
When I first logged in via SSH, and I did a DIR, I saw NOTHING. I had to create the directory public_html, and everything there is viewable by the public. Currently, when I log in via SSH and I do a DIR, I have listed Vent and public_html.
In my server's control panel, it states that my root is: /home/[user name]/public_html
Should I be putting this line in the crontab?
@reboot /home/[user name]/Vent/ventsrv/ventrilo_srv
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.