How do I run systemd on Ubuntu?
Answer
Now, take a few more steps to enable and use the .service file:
Answer
Now, take a few more steps to enable and use the .service file:
- Place it in /etc/systemd/system folder with say a name of myfirst.service.
- Make sure that your script executable with: chmod u+x /path/to/spark/sbin/start-all.sh.
- Start it: sudo systemctl start myfirst.
- Enable it to run at boot: sudo systemctl enable myfirst.