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
  • 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 isn't supported first of all..secondly what are you trying to accomplish?
Reply
  • 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 isn't supported first of all..secondly what are you trying to accomplish?
Children
No Data