Created
February 15, 2017 07:55
-
-
Save xionglun/8f785fd2a2c8295e996767de5daecaf8 to your computer and use it in GitHub Desktop.
Use systemd's timer
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 timer service | |
[Service] | |
Type=simple | |
ExecStart=/bin/echo 'Hello, timer' | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=mytimer |
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=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