Created
October 2, 2024 09:19
-
-
Save sheikhwaqas/e8990f7cf3aedd0f2c1022357c8804c3 to your computer and use it in GitHub Desktop.
Linux SystemD Service Creation Syntax
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=network.target | |
[Service] | |
User=user-to-run-service-as | |
Group=group-to-run-service-as | |
WorkingDirectory=absolute-path-for-application | |
ExecStart=absolute-path-for-binary-runtime-file | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment