Login

Language :
Title리눅스 우분투 크론 서비스 KST 시간 동기화
Linux Ubuntu Cron Service KST Time Synchronization
Writer이지섭Write DateFeb 9 2018Modify DateAug 9 2024View Count4291

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

10 11 * * * touch 1.txt

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://jdm.kr/blog/2

  http://blog.daum.net/2734/134

  http://www.craiglotter.co.za/2011/01/05/ubuntu-how-to-restart-the-cron-service/

Comment

Name               Password 
Content
Check Password.

Please enter your password when registering your comment.