Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Created April 20, 2018 03:46
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vpnwall-services/3435442163e29199ca5ae7cac7de171b to your computer and use it in GitHub Desktop.
Save vpnwall-services/3435442163e29199ca5ae7cac7de171b to your computer and use it in GitHub Desktop.
[Systemd Service Template] Skeleton for a new Systemd service #linux #systemd # service
#Put me in /lib/systemd/system/
[Unit]
Description=My Miscellaneous Service
After=network.target
[Service]
Type=simple
User=nanodano
WorkingDirectory=/home/nanodano
ExecStart=/home/nanodano/my_daemon --option=123
Restart=on-failure # or always, on-abort, etc
[Install]
WantedBy=multi-user.target
@babjan-shaik
Copy link

why there is "After parameter under unit module"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment