Re: Getting email from cron when script is run manually

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Dec 19, 2007 at 11:24:46AM -0600, Jeff Larsen alleged:
> > Could a previous cronjob be hanging, waiting for the initscript to finish?
> >
> > I bet the daemon doesn't die as expected sometimes.
> 
> Aha! looking at 'ps aux' we have:
> 
> crond
> /bin/bash /usr/bin/run-parts /etc/cron.daily
> awk -v progname=/etc/cron.daily/gk-restart ... <lots more junk>
> 
> All at 4:02 AM which is when cron.daily is processed.
> 
> The awk  process is from the run-parts script. So even though my init
> script works perfectly from the command line, it seems to be somehow
> incompatible with run-parts. I guess that's something to go on. Looks
> like I'll need to disect run-parts to see what's happening.

I doubt it has anything to do with run-parts; it just doesn't do much.

Have you tried the 'service' command?  It is the more "proper" way to run
initscripts:
  service gk restart

Attachment: pgpq35qXWxVEy.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux