cron gets disabled during boot.


 
Thread Tools Search this Thread
Operating Systems Solaris cron gets disabled during boot.
# 1  
Old 12-01-2011
cron gets disabled during boot.

I have a few Solaris 10 boxes that when I reboot then cron gets disabled. I can do

Code:
svcadm enable cron

and the service start fine and run until I reboot and then it gets disabled.

Code:
svc:/system/cron:default (clock daemon (cron))
 State: disabled since Thu Dec 01 10:40:48 2011
Reason: Temporarily disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-1S
   See: cron(1M)
   See: crontab(1)
   See: /var/svc/log/system-cron:default.log
Impact: This service is not running.

Here is the log for it (I think) I am not sure what I have in red below means really.

Code:
/var/svc/log/system-cron:default.log

[ Oct 26 21:41:18 Executing start method ("/lib/svc/method/svc-cron") ]
[ Oct 26 21:41:18 Method "start" exited with status 0 ]
[ Oct 26 21:41:34 Stopping because service disabled. ]
[ Oct 26 21:41:34 Executing stop method (:kill) ]
[ Oct 27 22:58:40 Enabled. ]
[ Oct 27 22:58:54 Executing start method ("/lib/svc/method/svc-cron") ]
[ Oct 27 22:58:54 Method "start" exited with status 0 ]
[ Oct 27 22:59:10 Stopping because service disabled. ]
[ Oct 27 22:59:10 Executing stop method (:kill) ]
[ Nov  3 22:32:48 Enabled. ]
[ Nov  3 22:33:02 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov  3 22:33:02 Method "start" exited with status 0 ]
[ Nov  3 22:33:18 Stopping because service disabled. ]
[ Nov  3 22:33:18 Executing stop method (:kill) ]
[ Nov  8 18:14:11 Enabled. ]
[ Nov  8 18:14:24 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov  8 18:14:24 Method "start" exited with status 0 ]
[ Nov  8 18:14:40 Stopping because service disabled. ]
[ Nov  8 18:14:40 Executing stop method (:kill) ]
[ Nov  8 21:16:01 Enabled. ]
[ Nov  8 21:16:15 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov  8 21:16:15 Method "start" exited with status 0 ]
[ Nov  8 21:16:32 Stopping because service disabled. ]
[ Nov  8 21:16:32 Executing stop method (:kill) ]
[ Nov 23 12:56:19 Rereading configuration. ]
[ Nov 23 13:19:46 Enabled. ]
[ Nov 23 13:19:46 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov 23 13:19:46 Method "start" exited with status 0 ]
[ Nov 23 13:44:48 Stopping because service restarting. ]
[ Nov 23 13:44:48 Executing stop method (:kill) ]
[ Nov 23 13:44:48 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov 23 13:44:48 Method "start" exited with status 0 ]
[ Nov 30 13:01:44 Stopping because service restarting. ]
[ Nov 30 13:01:44 Executing stop method (:kill) ]
[ Nov 30 13:01:44 Executing start method ("/lib/svc/method/svc-cron") ]
[ Nov 30 13:01:44 Method "start" exited with status 0 ]
[ Dec  1 10:29:20 Stopping because all processes in service exited. ]
[ Dec  1 10:29:20 Executing stop method (:kill) ]
[ Dec  1 10:29:20 Executing start method ("/lib/svc/method/svc-cron") ]
[ Dec  1 10:29:20 Method "start" exited with status 0 ]
[ Dec  1 10:33:26 Enabled. ]
[ Dec  1 10:33:39 Executing start method ("/lib/svc/method/svc-cron") ]
[ Dec  1 10:33:39 Method "start" exited with status 0 ]
[ Dec  1 10:33:55 Stopping because service disabled. ]
[ Dec  1 10:33:55 Executing stop method (:kill) ]
[ Dec  1 10:40:17 Enabled. ]
[ Dec  1 10:40:32 Executing start method ("/lib/svc/method/svc-cron") ]
[ Dec  1 10:40:32 Method "start" exited with status 0 ]
[ Dec  1 10:40:48 Stopping because service disabled. ]
[ Dec  1 10:40:48 Executing stop method (:kill) ]

Here are the dependencies listed as enabled

Code:
svcs -d cron
STATE          STIME    FMRI
online         10:40:18 svc:/milestone/name-services:default
online         10:40:32 svc:/system/filesystem/local:default

Any help would be appreciated.

I am sure I have to provide more info so let me know what else is needed.

Thanks in advance!
# 2  
Old 12-03-2011
Have you changed anything in the /etc/init.d and friends directories? Something is trying to re-start crond independently of the "normal" way.

Assume your problem started a month ago. Let's start with this:
Code:
find /etc/init.d /etc/rc* -type f -mtime -45 -ls

does that show anything?

You need to check any symlinks in those that point out of the /etc tree as well.
# 3  
Old 12-05-2011
This has happened from day one so I have not changed anything. I did the find like you suggested but nothing came back.

I think it is strange that it will run fine until a reboot and it gets disabled.

Is there a way to add some extra logging so when it boots it tells me what is disableing it?

Our print vendor uses Solaris 10 to run thier frontend software. We have never had issues with this until we upgraded our printers. I have asked our vendor if they have done something to make cron not enable at boot. No word and I don't expect anything inteligent from them really.
# 4  
Old 12-05-2011
read the manpage for svcadm... maybe the "-t" part is of interest...

Code:
svc:/system/cron:default (clock daemon (cron))
 State: disabled since Thu Dec 01 10:40:48 2011
Reason: Temporarily disabled by an administrator.
   See: http://sun.com/msg/SMF-8000-1S
   See: cron(1M)
   See: crontab(1)
   See: /var/svc/log/system-cron:default.log
Impact: This service is not running.

Quote:
enable [-rst] {FMRI | pattern}. . .

Enables the service instances specified by the operands. For each service instance, the assigned restarter will try to bring it to the online state. This action requires permission to modify the “general” property group of the service instance (see smf_security(5)).

If the -r option is specified, svcadm enables each service instance and recursively enables its dependencies.

If the -s option is specified, svcadm enables each service instance and then waits for each service instance to enter the online or degraded state. svcadm will return early if it determines that the service cannot reach these states without administrator intervention.

If the -t option is specified, svcadm temporarily enables each service instance. Temporary enable only lasts until reboot. This action requires permission to modify the “restarter_actions” property group of the service instance (see smf_security(5)). By default, enable is persistent across reboot.
# 5  
Old 12-05-2011
I have sure read that and I would have thought that using

Code:
svcadm enable cron

would not take any -t (Temporary) setting. Am I wrong in my thinking?
# 6  
Old 12-05-2011
the service is marked as "temp" down... so someone or something must have done that... maybe a script (which is also running at startup) is causing the issue.
# 7  
Old 12-05-2011
Quote:
Originally Posted by DukeNuke2
the service is marked as "temp" down... so someone or something must have done that... maybe a script (which is also running at startup) is causing the issue.
Yeah that is what I was thinking but can't figure out how to find that out. I was hoping to be able to run some more detailed logging on either the cron startup or the service manager on startup.

Thanks for everyone advice so far.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

FATAL: system is not bootable, boot command is disabled

Dear all, I Need your help,my server v240 with sun solaris 10 can't remote login.I try conncet via rsc and then go to OK prom....and i get the status : {1} ok boot -a FATAL: system is not bootable, boot command is disabled {1} ok boot cdrom -s FATAL: system is not bootable, boot command is... (2 Replies)
Discussion started by: fredginting
2 Replies

2. Solaris

NTP gets disabled

Hi experts, I am using solaris10 operating system on a N240 Sun server. I have a problem on NTP, that is, i am using an external ntp server and when i enable ntp instance via smf, it works for a while then it gets disabled.. Here these are the info: 1) I enable the ntp service: # svcadm... (1 Reply)
Discussion started by: dyavuzy1
1 Replies

3. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

4. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

5. Red Hat

selinux --disabled

Hi All, Will some one kindly explian below ? selinux What is the effect of installing a server using this kickstart option as follows: selinux --enforcing and selinux --disabled (1 Reply)
Discussion started by: sri243
1 Replies

6. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

7. UNIX for Advanced & Expert Users

Cannot boot - Boot : Panic : File size out of range (EWS-UX/V unix)

Hey ! I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range. According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies

8. Shell Programming and Scripting

queue is disabled

Does anyone know why I got this message when I tried to print my file on Unix? THANK YOU! (1 Reply)
Discussion started by: whatisthis
1 Replies

9. UNIX for Dummies Questions & Answers

OBP saying boot is disabled??

Hi all, need your help again :P I am trying to build a server in work, and it comes up with the OBP (Open Boot Prompt) and when i try and install the cdrom "boot cdrom -s" it throws back the following error: "System is not bootable, boot command is disabled" This is trying to install... (3 Replies)
Discussion started by: SemperFi
3 Replies
Login or Register to Ask a Question