Skip to content

Instantly share code, notes, and snippets.

@robszumski
Created November 21, 2013 20:29
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 robszumski/7589041 to your computer and use it in GitHub Desktop.
Save robszumski/7589041 to your computer and use it in GitHub Desktop.
Service that runs like a cron job
[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
[Timer]
OnBootSec=1min
OnUnitActiveSec=1min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment