Skip to content

Instantly share code, notes, and snippets.

@imZack
Forked from hkoba/sched-reboot.service
Created February 26, 2020 02:32
Show Gist options
  • Save imZack/89565a8abe3c84783df2b4ef72abdceb to your computer and use it in GitHub Desktop.
Save imZack/89565a8abe3c84783df2b4ef72abdceb to your computer and use it in GitHub Desktop.
systemd service and timer for scheduled reboot.
[Unit]
Description=Scheduled Reboot
[Service]
Type=simple
ExecStart=/usr/bin/systemctl --force reboot
[Unit]
Description=Reboot Scheduling.
[Timer]
OnCalendar=*-*-* 01:30:00
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment