Created
May 1, 2022 14:32
-
-
Save rellfy/367e69cb70ee81ce985a573dab5ac984 to your computer and use it in GitHub Desktop.
Linux 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=A linux service, located on /etc/systemd/system/<NAME>.service, that forever attempts to restart itself after 1s. | |
[Service] | |
User=root | |
ExecStart=/bin/bash -c "echo 'who is a good service? i am a good service'" | |
Restart=always | |
RestartSec=1 | |
StartLimitInterval=0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment