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 have a executable file put in the /etc/init.d, that I want it to be run every time the machines reboots. Also I made a link from the /etc/rc3.d like this:
ls -s ln -s ../init.d/kannel kannel
But after I reboot the machine there is no process running.
The script is run properly when i execute it manually.
If you look in /etc/rc3.d you will see that all links start with either K (for kill) or S (for start) - you need to do this as well if you want do do all the Sys V stuff.
Did you look at any of the other scripts in /etc/init.d and see how they are set up? You will need to do the same for your script.
Otherwise, usually you could simply put your script in /etc/rc.local and it will be run after all other scripts have run at startup.
are you facing any issues manually start the service (/etc/rc.d/init.d/kannel start)?? if not the services want it to be run every reboot
#runlevel , it will give current runlevel
#chkconfig --list | grep kannel, check the output if all the runlevel off, you will have to turn on it.
#chkconfig --level 2345 kannel on (makesure it on which runlevels this services wants to be turn on every reboot)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.