https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-startup-using-systemd
#linux #systemd #systemctl #service
#linux #systemd #systemctl #service
Ask Ubuntu
How do I run a single command at startup using systemd?
I'd like to startup an Apache Spark cluster after boot using the following command:
sudo ./path/to/spark/sbin/start-all.sh
Then run this command when the system prepares to reboot/shutdown:
sudo ...
sudo ./path/to/spark/sbin/start-all.sh
Then run this command when the system prepares to reboot/shutdown:
sudo ...