rendered paste body[root@srv1 bin]# sh -x /etc/init.d/httpd status
+ ulimit -n 1024
+ ulimit -n 4096
+ ulimit -n 8192
+ ulimit -n 16384
+ PIDFILE=/usr/local/apache/logs/httpd.pid
+ '[' -e /etc/chroothttpd ']'
+ HTTPD=/usr/local/apache/bin/httpd
+ LYNX='lynx -dump'
+ STATUSURL=http://localhost/whm-server-status
+ ERROR=0
+ ARGV=status
+ '[' xstatus = x ']'
+ for ARG in '$@' '$ARGS'
+ '[' -f /usr/local/apache/logs/httpd.pid ']'
++ cat /usr/local/apache/logs/httpd.pid
+ PID=17579
+ '[' x17579 '!=' x ']'
+ kill -0 17579
+ STATUS='httpd (pid 17579) running'
+ RUNNING=1
+ case $ARG in
+ lynx -dump http://localhost/whm-server-status
+ awk ' /process$/ { print; exit } { print } '
Apache Server Status for srv1.mostconsulting.net
Server Version: Apache/1.3.39 (Unix) PHP/5.2.5 mod_log_bytes/1.2
mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635
mod_ssl/2.8.30 OpenSSL/0.9.8b
Server Built: Dec 1 2007 09:55:20
_________________________________________________________________
Current Time: Thursday, 06-Dec-2007 23:43:19 PST
Restart Time: Sunday, 02-Dec-2007 02:24:15 PST
Parent Server Generation: 0
Server uptime: 4 days 21 hours 19 minutes 4 seconds
Total accesses: 13497 - Total Traffic: 591.6 MB
CPU Usage: u519.94 s105.62 cu9.3 cs1.49 - .151% CPU load
.032 requests/sec - 1468 B/second - 44.9 kB/request
1 requests currently being processed, 9 idle servers
___W______......................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current process
+ exit 0
[root@srv1 bin]#