9
Run a shell script on system startup?
(lemmy.ml)
Linux questions Rules (in addition of the Lemmy.zip rules)
Tips for giving and receiving help
Any rule violations will result in disciplinary actions
In general, the kernel starts one program after it finishes booting, and that process starts everything else; traditionally it’s called ‘init’. systemd is a “modern” replacement.
Different distributions and unix variants use different “init” patterns and tooling; so find out what your distribution is using.
Those patterns are designed for this use case but you need to understand the different phases of startup and where your script should fit in.
What distro are you using?