Last active
November 30, 2021 17:38
-
-
Save dacr/0279f73ce496b6913cf1386e8830496a to your computer and use it in GitHub Desktop.
simple alive service based on systemd (timer part) / published by https://github.com/dacr/code-examples-manager #8baea30f-628f-46cf-bb42-a8041fb74e7f/d8e191a760a798f43d154acc09b880a0878ffcea
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
## summary : simple alive service based on systemd (timer part) | |
## keywords : systemd, ping, alive, service | |
## publish : gist | |
## authors : David Crosson | |
## license : none | |
## id : 8baea30f-628f-46cf-bb42-a8041fb74e7f | |
## created-on : 2020-10-17T13:30:49Z | |
## managed-by : https://github.com/dacr/code-examples-manager | |
# Instructions | |
# - copy this file into `/etc/systemd/system/` directory | |
# - systemctl daemon-reload | |
# - systemctl enable --now alive-teller.timer | |
# - systemctl status | |
[Unit] | |
Description=AliveTellerTimer | |
[Timer] | |
OnBootSec=2m | |
OnUnitInactiveSec=60s | |
RandomizedDelaySec=10s | |
Unit=alive-teller.service | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment