This patch will restart 3 services (dclogshrec.services, dclogcorej.services, tomcat.services) at 2 AM

This patch will restart desktop service (gdm.services) at 2.05 AM



Steps:

 

  1. Login using ‘root’ account.
  2. Copy the file “root” into /var/spool/cron
  3. Open terminal > input command crontab -e > press Enter
  4. Press ‘I’, you will enter editing mode. Remove the “#” from the 2 command line.

 

 

 

  1. Next, press ‘ESC’ to exit editing mode. 
  2. Press ‘Shift + :’ then type wq to save the changes. 
  3. “Crontab: installing new crontab” is displayed. 
  4. In terminal > input command cat  /var/log/cron  to display the log.

 

 

 

Change Restart Time

 

  1. Open terminal > input command crontab -e > press Enter
  2. Change the value highlighted below 
    1. Format: Minutes Hour Day Month Week
  3. E.g: Restart daily 8:40AM > 40 8 * * *

 

 

  1. Take note both services restart command must have at least 2 minutes interval.