Created
June 1, 2021 16:58
-
-
Save ciffelia/9fb7a18a2b45c9a680c4cadc6688c63a to your computer and use it in GitHub Desktop.
毎週月曜日午前3時に再起動
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/reboot.service | |
[Unit] | |
Description = Reboot | |
RefuseManualStart = true | |
RefuseManualStop = true | |
[Service] | |
ExecStart = /sbin/reboot | |
[Install] | |
WantedBy = multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/reboot.timer | |
[Unit] | |
Description = Weekly Reboot Timer | |
[Timer] | |
OnCalendar = Mon 3:00 Asia/Tokyo | |
[Install] | |
WantedBy = timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment