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

[cobalt-users] Re:RAQ3 - services.cgi Question



At 4:01 PM -0500 3/12/03, Chae is rumored to have typed:

> When you are in the control panel area of the Admin GUI you can click on
> restart services...when I do that and watch top I can see a services.cgi
> being called.
> Now can someone tell me what services it actually restarts?

   (*sigh*)

   You know, someone here is going to give me a bunch of flack for being
"mean" for suggesting this, but geez, why don't you open
/usr/admserv/cgi-bin/.cobalt/services/services.cgi in any text editor (vi,
pico, joe, whatever) and READ IT? (How can someone find any file on the box?
su to root and do a locate.)

   Honest, folks, spending five seconds doing a little primary research isn't
asking _all_ that much, now is it? I mean, you know the name of the script,
you know from where it's called, so how tough could it possibly be to find it
and read it?

> Now the question was which services does the services.cgi script
> start...reason for asking was I thought I could call that in a cronjob and
> see if restarting services would stop it from disappearing.

   Again, read the script, since you're going to have to deal with the output
of the thing (if you don't, the owner of the cronjob is going to get mailed a
copy of the output). Writing a shell script would (I would think) be a whole
lot easier, but based on my experiences with the RaQ3, you should use
"<service> stop," wait a few seconds, and then do "<service> start" instead
of using "<service> restart," since at least with sendmail a restart
frequently fails.

   (My guess is your problem is somewhere else, if _all_ services appear to
die at the same time, it's more likely your box is no longer communicating
not that those services have all chosen the exact same moment to commit
suicide. But what do I know? Every time I think a RaQ3 can't possibly do
something stupid, it fools me.)

         Charlie