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
  • Select an option

  • Save imZack/89565a8abe3c84783df2b4ef72abdceb to your computer and use it in GitHub Desktop.

Select an option

Save imZack/89565a8abe3c84783df2b4ef72abdceb to your computer and use it in GitHub Desktop.

Revisions

  1. @hkoba hkoba revised this gist May 16, 2017. 2 changed files with 5 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion sched-reboot.service
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,5 @@
    Description=Scheduled Reboot

    [Service]
    Type=oneshot
    Type=simple
    ExecStart=/usr/bin/systemctl --force reboot
    5 changes: 4 additions & 1 deletion sched-reboot.timer
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,7 @@
    Description=Reboot Scheduling.

    [Timer]
    OnCalendar=*-*-* 01:30:00
    OnCalendar=*-*-* 01:30:00

    [Install]
    WantedBy=multi-user.target
  2. @hkoba hkoba created this gist Apr 28, 2017.
    6 changes: 6 additions & 0 deletions sched-reboot.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [Unit]
    Description=Scheduled Reboot

    [Service]
    Type=oneshot
    ExecStart=/usr/bin/systemctl --force reboot
    5 changes: 5 additions & 0 deletions sched-reboot.timer
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    [Unit]
    Description=Reboot Scheduling.

    [Timer]
    OnCalendar=*-*-* 01:30:00