On an OpenSuSE linux machine, I want to run a script when the machine is booted. As the script does not start a service, is /etc/rc.d the correct place for the script?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s where I’ve always put them. There are several scripts in rc.d already which don’t actually start a process. However, you need to write it in a similar fashion to the other startup scripts – have a look at a few to see how they are set up. Specifically, you should make sure that it’s possible to run the script using
/etc/rc.d/myscript start.