Created
November 16, 2015 01:15
-
-
Save meinside/5b752da8dc20ad4fdc82 to your computer and use it in GitHub Desktop.
Systemd service file for Go application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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