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
  • The Sophos UTM OS is based on SUSE Enterprise Linux.  On-box documentation and example files are largely absent.

    You may want to look at cron with @reboot in place of, or until, the init side of things are sorted.  There are forum posts that explain how the UTM cron system works (it isn't entirely typical).
Reply
  • The Sophos UTM OS is based on SUSE Enterprise Linux.  On-box documentation and example files are largely absent.

    You may want to look at cron with @reboot in place of, or until, the init side of things are sorted.  There are forum posts that explain how the UTM cron system works (it isn't entirely typical).
Children
No Data