If your script depends on bash environment variables to be set before it works correctly, you will not be able to run it at boot. Bash environment variables are set when a user logs in.
When a user logs in bash reads and executes commands, if the files exist, in this order:
/etc/profile, ~/.bash_profile, ~/.bash_login, ~./profile
Jim H


Reply With Quote
Bookmarks