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.
A lot of them do, but not all of them. Some of them are set to and some aren't. And of course all of this can be changed, scripts can be added and scripts can be removed. Just because the script is in that directory though dosen't mean it will be automatically run.
-ok
-so how can i make a script in init.d runs automatically when linux boots up?
Look in /etc to find a set of directories named rc1.d, rc2.d, etc. These contain links to the scripts in init.d
Each of these corresponds to a "runlevel". the runlevel to use on bootup is specified in /etc/inittab, like so:
id:5:initdefault:
This says to start in runlevel 5. Init then goes to rc5.d and runs the links to the actual scripts in init.d the links are prefaced with "K" for kill, or "S" for start--followed by a number. These links are followed in ALPHABETICAL order--not numerical. The S and K prefixes cause arguments to be passed to the scripts.
If you are not yet confused, then we have failed....
where could I put a command to run after I startx at? I just need it to launch a program (azureus) and to change my mouse settings (xset m 0 0)? Running slackware 10.2 btw.
-yes i am trying but i have a hard time understanding it.
-i have copied my script to /etc/init.d and tried this on the terminal "$ updated-rc.d startme start" (startme is my script) but it wont work something is missing on my command and i dont know what it is...
-is there other ways run my script upon linux boot?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.