Error when restarting services from service monitor

opussupport

Verified User
Joined
Sep 19, 2006
Messages
27
I just notices this after doing a fresh install on a new server:

when i restart services from the service manager i get the error:
/usr/local/etc/rc.d/httpd restart 2>&1

This is on FreeBSD 6.2. It appears to have restarted the service ok, but the error confuses me.
 
What you've posted isn't an error; it's a command. It may be that it's a command that doesn't exist on your server; in which case the service may be being restarted by DirectAdmin's service monitor after the command failed.

Did you do anything else at all after installing DirectAdmin?

Thanks.

Jeff
 
Thats just the thing... that is the error that DA reports. Just the command it appears to be trying to execute, but no reason for the error.

Yes, I installed mod_security and set up some non apache related items such as our backup system client and a mysql backup script. This started happening on some of our older, tweaked and modded servers after updating DA from 1.294 to 1.296, but this is the first server i've setup where i noticed it before doing any additional changes.

I would imagine there is a script I can remove the 2>&1 from, but I have not looked that far into the DA files to know where it is or if it is something I can change without reprocussions.
 
Hello,

The 2>&1 just means that any output from the script to the stderror pipe will be duped to the stdout pipe so DA only needs to read in one stream.

As of a while back, DA stopped reading in the stream because of strange issues with the sh binary going defunct during the restarts. So when the httpd script returns a non-zero value, instead of DA showing the error that was output, it will show the command that was called (uses the same buffer space)..

Basically, the short answer is: the error should be in your /var/log/httpd/error_log, if there is an error.
It's possible the warnings that are of no significance are returning a non-zero value, hence DA shows that there is an error, even though there might not actually be one.

John
 
Back
Top