Skip to content

Instantly share code, notes, and snippets.

@meinside
Created November 16, 2015 01:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meinside/5b752da8dc20ad4fdc82 to your computer and use it in GitHub Desktop.
Save meinside/5b752da8dc20ad4fdc82 to your computer and use it in GitHub Desktop.
Systemd service file for Go application
[Unit]
Description=__Service_Description__
After=syslog.target
After=network.target
[Service]
Type=simple
User=__Run_User__
Group=__Run_Group__
WorkingDirectory=__Directory_Path__
ExecStart=__Executable_With_Path__
Restart=always
RestartSec=5
Environment=
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment