Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active November 30, 2021 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/0279f73ce496b6913cf1386e8830496a to your computer and use it in GitHub Desktop.
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
## 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