Title | 리눅스 우분투 크론 서비스 KST 시간 동기화 Linux Ubuntu Cron Service KST Time Synchronization | ||||||
Writer | 이지섭 | Write Date | Feb 9 2018 | Modify Date | Aug 9 2024 | View Count | 5255 |
After changing the time zone of Linux to KST, The time for cron services still remains as UTC.
To change the time zone of the cron service to KST, execute the following command. It's a re-start. sudo /etc/init.d/cron restart Depending on the type of Linux, it is also /etc/init.d/crond.
* * * * * minute (0-59) hour (0-23) day (1-31) month (1-12) day of the week (0-7) $ crontab -e The cron tab command above updates the 1.txt file at 11:10 a.m. daily.
If the cron service is not restarted and only the local time zone is changed to KST, the cron service remains in the UTC time zone.
10 2 * * * touch 1.txt
The file will be updated at 11:10 when do like above.
[Web page referenced] http://www.craiglotter.co.za/2011/01/05/ubuntu-how-to-restart-the-cron-service/ | |||||||