- Plesk 11.0 for Linux
- Plesk 11.5 for Linux
- Plesk 12.0 for Linux
Customer added the following entry to crontab to syncronize time on the server every 5 minute:
5 * * * * ntpdate -u pool.ntp.org
Howver it does not work. Server time not getting synchronized with NTP server time due to misplaced cron entries.
Misplaced cron entries in crontab file caused by incorrect syntax.
Create a file
Add the following line to that file:
ntpdate -d -u pool.ntp.org >/dev/null 2>&1
Make it executable
#chmod +x /usr/crontime
Edit crontab entry as follows:
5 * * * * /usr/crontime
This entry means that the cron will be executed every 5 minutes and the server time will be synchronized with NTP server.