Skip to content

Instantly share code, notes, and snippets.

@deadjakk
Last active March 2, 2024 23: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 deadjakk/1734c46b66f6c65559f80d8a10f746f5 to your computer and use it in GitHub Desktop.
Save deadjakk/1734c46b66f6c65559f80d8a10f746f5 to your computer and use it in GitHub Desktop.
simple systemd service template
# https://stackoverflow.com/questions/68484974/how-to-run-bash-script-as-background-process-on-system-forever
[Unit]
Description=My Shell Script for Sync
[Service]
ExecStart=/usr/bin/sync.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment