$ sudo vim /etc/cron.monthly/scheduled_reboot.sh
# !/bin/sh
reboot
権限修正
$ sudo chmod +x /etc/cron.monthly/scheduled_reboot.sh
$ sudo chown root:root /etc/cron.monthly/scheduled_reboot.sh
実行タイミングは/etc/crontab
を見るとわかります。
Go to list of users who liked
More than 5 years have passed since last update.
$ sudo vim /etc/cron.monthly/scheduled_reboot.sh
# !/bin/sh
reboot
$ sudo chmod +x /etc/cron.monthly/scheduled_reboot.sh
$ sudo chown root:root /etc/cron.monthly/scheduled_reboot.sh
実行タイミングは/etc/crontab
を見るとわかります。
Register as a new user and use Qiita more conveniently
Go to list of users who liked