Skip to content

Instantly share code, notes, and snippets.

@robszumski
Created November 21, 2013 20:29
Show Gist options
  • 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