Created
November 21, 2013 20:29
-
-
Save robszumski/7589041 to your computer and use it in GitHub Desktop.
Service that runs like a cron job
This file contains 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=Reset etcd | |
After=etcd.service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/etcdctl set /test "Hello" | |
Unit=reset-etcd.service | |
[Install] | |
WantedBy=local.target |
This file contains 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
[Timer] | |
OnBootSec=1min | |
OnUnitActiveSec=1min |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment