ispCP - Board - Support
Daemon Status Codes? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Daemon Status Codes? (/thread-6378.html)



Daemon Status Codes? - Wachert - 04-12-2009 09:36 PM

What means: Daemon returned 0 as status code

What defines "0"?

In Server Status the Daemon is not running, but when i go to my shell und look in top or htop, theres a ispcp daemon running and active. After a restart the Status Page still says Daemon not running.

Maybe cos im using a vserver and iptables is not usable?


RE: Daemon Status Codes? - BeNe - 04-14-2009 04:24 PM

Found this in the daemon:
Code:
case "$status" in
                0)
                        log_success_msg "$NAME running"
                ;;
                1)
                        log_warning_msg "$NAME not running (but pid file found)"
                ;;
                2)
                        log_warning_msg "$NAME not running (but lock file found)"
                ;;
                3)
                        log_warning_msg "$NAME not running"
                ;;
                4|*)
                        log_failure_msg "Service status is unknown"
                        exit 1
                ;;
        esac
IP-Tables are set with the ispcp_networkmanager only.

Greez BeNe


RE: Daemon Status Codes? - Wachert - 04-14-2009 09:03 PM

lol?

The Systems says Status Code 0, so the daemon is running (same says top and htop).

But under Server Status in the Panel the Daemon is shown as offline.


RE: Daemon Status Codes? - joximu - 04-14-2009 09:53 PM

Server status in the gui looks at the ports - e.g. localhost:9876

Maybe this may bring you to the right direction...
/J