Created
September 1, 2022 21:12
-
-
Save dioncodes/4a7941800d4f944ba24122d5d1760585 to your computer and use it in GitHub Desktop.
Gin Go Backend System Service
This file contains hidden or 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=example-backend | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=5s | |
ExecStart=/path/to/example/example-backend-linux-amd64 | |
WorkingDirectory=/path/to/example | |
Environment="GIN_MODE=release" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
location e.g.
/lib/systemd/system/example-backend.service