Skip to content

Instantly share code, notes, and snippets.

@slashtechno
Created November 7, 2021 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slashtechno/9774bb2abe63cdf6716cc8802fa384ff to your computer and use it in GitHub Desktop.
Save slashtechno/9774bb2abe63cdf6716cc8802fa384ff to your computer and use it in GitHub Desktop.
Simple Systemd Script
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/
[Unit]
Description= Hello, world!
[Service]
User= <put user here>
WorkingDirectory=<put directory the command should be run in>
ExecStart=<path to command>
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment