I've been having some difficulty trying to understand how to use systemd.
I'd like to startup an Apache Spark cluster after boot using the following command:
Then run this command when the system prepares to reboot/shutdown:
Is there any tutorials for systemd?
I can't seem to find anything useful for getting started or a basic template I can build on.
I've tried to use an extremely simple (file: /lib/systemd/system/spark.service):
[Unit] Description=Spark service [Service] ExecStart=sudo ./path/to/spark/sbin/start-all.sh
Which doesn't work.
Any help is much appreciated!