05-20-2011
5,521,
335
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,521
Thanks Given: 38
Thanked 335 Times in 308 Posts
The output of the service command isn't fixed, as far as I know, but highly dependent on the script in /etc/init.d. Meaning: service httpd status could report the status in a different way than service crond status or service sshd status. It might be possible to check the return code instead, but I have neither a RHEL, CentOS, SuSE, or Fedora installation available to check this.