Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 want it to run every time I startup. Right now I can run it by hand. I thought it should go in /etc/rc.local, but that didn't work. I tried putting it in /etc/rc, but that doesn't work either.
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234
Rep:
i think there a few rc. files that are run at startup... all at slightly different times. rc.S is a big one I think, but it is run very early on. rc.5 or rc.4 are good as well if you want it run later (as they are run when entering runlevels 4 and 5 respectively). and that's about all I know! sorry I can't be of more help, but lots of them are run on boot so experiment =)
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
You might need to pause between the commands before the next starts. You can use the ' sleep ' command usually in /bin or the universal pause statement ' ping -c2 127.0.0.1 > /dev/null '
Also if thats all thats in your /etc/rc.local then it needs one line at the very beginning to define it as a script to use a shell of some type. Even though it is remarked with a ' # ' it still defines the shell it uses. It needs to have this ' #!/bin/sh '. Also needs to be executable. ' chmod + x /etc/rc.local '. Must be run as root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.