Skip to content

Instantly share code, notes, and snippets.

@krizex
Created January 23, 2019 05:53
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 krizex/af3c7b55cfed268cbfa0361ff6206ab1 to your computer and use it in GitHub Desktop.
Save krizex/af3c7b55cfed268cbfa0361ff6206ab1 to your computer and use it in GitHub Desktop.
[Unit]
Description=My Miscellaneous Service
After=network.target
[Service]
Type=simple
# Another Type option: forking
User=nanodano
WorkingDirectory=/home/nanodano
ExecStart=/home/nanodano/my_daemon --option=123
Restart=on-failure
# Other Restart options: or always, on-abort, etc
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment