This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Starting bash script on boot

Hi all,

Hopefully its an easy fix, I'm trying to start a bash script at startup that will run forever (while system is online).

I have a script, called statupdate

I have located it in /etc/init.d/

I have given it execute permissions

I have then put in a link to it under /etc/init.d/RC3.d/S99statupdate

This worked, but the system boot sequence never finished because the script started kept looping, preventing the system boot sequence to continue.

I then created another script called startupdate

that script simply started the main statupdate script. I tried with the following:

./statupdate &

OR

nohup ./statupdate & 

I swapped out the S99statupdate with S99startupdate (and gave it execute permissions)

The exact same issue occured.

Can anyone point out what I'm doing wrong?

Cheers,
Pazu


This thread was automatically locked due to age.
Parents Reply
  • Thanks TechEd and Barry, I had looked at crontab and @reboot, was hoping to find something that survives a head reset, but I think that is my best option at the moment.

    William - trying to start a script that has a forever loop in it at run time - thats all. I'm aware that this isn't supported, it is a home install.
Children
No Data