Skip to content

Instantly share code, notes, and snippets.

@gdestuynder
Created May 3, 2016 17:34
Show Gist options
  • Save gdestuynder/b34a07094b73a555eb718415242e5616 to your computer and use it in GitHub Desktop.
Save gdestuynder/b34a07094b73a555eb718415242e5616 to your computer and use it in GitHub Desktop.
File: mig loader service /etc/systemd/system/mig-loader.service
Do not enable/start manually (well, you can, but its not really useful)
----------------snip--------------
[Unit]
Description=Runs mig-loader, the mig update service.
[Service]
Type=oneshot
ExecStart=/sbin/mig-loader
----------------snap---------------
File: mig loader timer /etc/systemd/system/mig-loader.timer
Do enable/start: systemctl enable mig-loader.timer ; systemctl start mig-loader.timer (the first time only unless you reboot)
-----------snip--------------
[Unit]
Description=Run mig-loader (mig updater) at boot and every day after that.
[Timer]
OnBootSec=15min
OnUnitActiveSec=1d
[Install]
WantedBy=timers.target
------------snap------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment