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
My first simple use case: I want to start a http (
busybox httpd
) server on localhost inside a certain directory whenever I turn the PC on.Don't use a script for this
I would setup Lighttpd since it is a proper server while being pretty lightweight. It should come with the needed systemd unit so that you can just do
sudo systemctl start lighttpd
Avoid writing scripts like the plague. Config files are much better and will scale better.