Last active
July 8, 2019 09:57
-
-
Save madsonic/fc6b9e10dfa3bc1e07569d7048c4d704 to your computer and use it in GitHub Desktop.
common systemd service config
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] | |
StartLimitIntervalSec=60 #length of limit interval | |
StartLimitBurst=6 #start limit within interval | |
# i.e. can start 6 times in a span of 60 sec | |
ConditionPathExists=/etc/foo/foo.conf # only start if this file exists | |
# see other Condition* directives | |
[Service] | |
RestartSec=10 # restart every 10 if restart conditions are met |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment