Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Use systemd's timer
[Unit]
Description=A timer service
[Service]
Type=simple
ExecStart=/bin/echo 'Hello, timer'
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mytimer
[Unit]
Description=Run foo weekly and on boot
[Timer]
OnBootSec=15min
OnUnitActiveSec=1w
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment