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

Re: [cobalt-users] Cron.hourly error messages



Check to see if the file's "asp-admin-5100" and "asp-admin-3000" exist in
the /etc/rc.d/init.d directory:

ls -la /etc/rc.d/init.d/asp*

(as root)

It sounds as though the shell script can't find them as described below.

The chkconfig commands detail at which run-level your services should start
at - so running the chkconfig utility justs adds a symbolic link to the
associated rc directory - linking it back to the /etc/rc.d/init.d/foo
script.

Long story short:

The script below LOOKS like it sais - is the public server supposed to be on
- if so check its status - if it is not running - restart it by running the
following command: /etc/rc.d/init.d/asp-apache-3000 restart

And the same for the admin server.


Does this help???? A wee bit of shell script tutorial review might help you
to understand how things "should" run on a Linux system - even a Sun Linux
System.... ;-)



Sonny.

If the file 

 On 9/22/02 10:20 PM, "Malcolm Hills" <associates@xxxxxxxxxxxxxx> wrote:

> Is anyone able to shed any light on this Raq4 error message please
> 
> cron.hourly is sending the following message every time it runs
> 
> error reading from directory /etc/rc.d/init.d: No such file or
> directoryerror reading from directory /etc/rc.d/init.d: No such file
> or directory
> 
> 
> the only file in cron.hourly is
> 
> asp_monitor.sh which contains the
> following:
> ___________________
> 
> #!/bin/sh
> 
> # public server, port 3001
> /sbin/chkconfig --list | /bin/grep asp-apache | grep ':on' > /dev/null
> 2>&1
> if [ $? -eq 0 ]; then
> /home/chiliasp/asp-apache-3000/caspctrl status > /dev/null 2>&1
> if [ $? != 0 ]; then
>   /etc/rc.d/init.d/asp-apache-3000 restart > /dev/null 2>&1
> fi
> fi
> 
> # admin server, port 5102
> /sbin/chkconfig --list | /bin/grep asp-admin | grep ':on' > /dev/null
> 2>&1
> if [ $? -eq 0 ]; then
> /home/chiliasp/admin/bin/caspctrl status > /dev/null 2>&1
> if [ $? != 0 ]; then
>   /etc/rc.d/init.d/asp-admin-5100 restart > /dev/null 2>&1
> fi
> fi
> _________
> 
> I have no idea if the error is referring to this, or to something
> else,  but the contents of asp_monitor.sh mean nothing to me.
> 
> Could someone please point me in the right direction to finding the
> cause of this error, and fixing it
> 
> Malcolm
> 
> 
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>