rescheduling a cron job in solaris

Error :

! c queue max run limit reached Fri May 27 12:39:00 2011
! rescheduling a cron job Fri May 27 12:39:00 2011
! c queue max run limit reached Fri May 27 12:39:00 2011
! rescheduling a cron job Fri May 27 12:39:00 2011
! c queue max run limit reached Fri May 27 12:39:00 2011
! rescheduling a cron job Fri May 27 12:39:00 2011
! c queue max run limit reached Fri May 27 12:39:00 2011
! rescheduling a cron job Fri May 27 12:39:00 2011
! c queue max run limit reached Fri May 27 12:39:00 2011
! rescheduling a cron job Fri May 27 12:39:00 2011
! c queue max run limit reached Fri May 27 12:40:00 2011
! rescheduling a cron job Fri May 27 12:40:00 2011
! c queue max run limit reached Fri May 27 12:40:00 2011
! rescheduling a cron job Fri May 27 12:40:00 2011
! c queue max run limit reached Fri May 27 12:40:00 2011
! rescheduling a cron job Fri May 27 12:40:00 2011
! c queue max run limit reached Fri May 27 12:40:00 2011
! rescheduling a cron job Fri May 27 12:40:00 2011
! c queue max run limit reached Fri May 27 12:40:00 2011
! rescheduling a cron job Fri May 27 12:40:00 2011
! c queue max run limit reached Fri May 27 12:41:00 2011
! rescheduling a cron job Fri May 27 12:41:00 2011
! c queue max run limit reached Fri May 27 12:41:00 2011
! rescheduling a cron job Fri May 27 12:41:00 2011
! c queue max run limit reached Fri May 27 12:41:00 2011
! rescheduling a cron job Fri May 27 12:41:00 2011
! c queue max run limit reached Fri May 27 12:41:00 2011
! rescheduling a cron job Fri May 27 12:41:00 2011
! c queue max run limit reached Fri May 27 12:41:00 2011
! rescheduling a cron job Fri May 27 12:41:00 2011

Solaris :

Solution:

bash#  cat /etc/cron.d/queuedefs
a.9j1n
b.2j2n90w

NOTE: The a queue, by default, can run 4 jobs simultaneously.

NOTE: The a.9j1n means 9 cron jobs can be run similatenously with a nice value of 1.

To increase that number, modify the queuedefs file and restart cron.

The follow example increases the limit from 4 to 10 simultaneous jobs.

Modify the queuedefs file:

# vi /etc/cron.d/queuedefs

a.4j1n –> change this to the following line
a.10j1n

Stop Cron:

# ps -ef |grep cron

# kill {cron_pid}

NOTE: This defaults to a -15 which kills nicely.

Restart cron:

# svcadm restart cron

Solaris 9 or earlier versions Solaris 10
Service status ps(1) command
(only process information is shown)
svcs(1) or ps(1) command
Service stop # /etc/init.d/cron stop # svcadm disable -t
system/cron:default
Service restart (temporary) # /etc/init.d cron start # svcadm enable -t
system/cron:default
Service stop
After service restart the service isn’t started
(1)# /etc/init.d/cron stop
(2)# mv /etc/rc2.d/S75cron /etc/rc2.d/_S75cron
(Need to rename the service start script)
# svcadm disable -t
system/cron:default
Service restart (permanent) (1) # /etc/init.d/cron stop
(2) # /etc/init.d/cron start
# svcadm restart -t
system/cron:default


One thought on “rescheduling a cron job in solaris”

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.