How can I set scripts to run at startup? openSuSE 10.1 x86
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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 guess that would work, but I wanted something that runs regardless of whether I run a GUI or not.
I set this up on Ubuntu once, but I forget the location of the script. Basically, it ran my script before it ever started X.
This way, even if X doesn't work for some reason, my script still gets run (the script sends my IP to a webserver so I can check the webserver from work to know where to point my SSH client when I wanna use my home computer from work).
Sorry for the confusion. I don't have suse installed anywhere, but have you searched your /etc directory for rc.local? All your init scripts are located somewhere in /etc on all *nix systems I'm familiar with and rc.local is designated as the last init script to run on any system that has an rc.local. If suse doesn't have an rc.local, which may very well be the case, you can edit some existing init script to run your scripts at boot but you would want to make sure you do it late in the boot process. For that you would have to be pretty familiar with suse's init process. Alternatively, here's an article on creating your own init script in suse:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.