March
15th,
2010
My RHEL init scripts all output that convenient text "OK" upon success, "FAILURE" on failure. I wanted them too, but some of my startup stuff are not programs that can be daemon-ized; they're just scripts.
There is a function in /etc/init./functions called "daemon" which will output those messages, but for the rest of us, you can get the same effect by calling the "echo_success" and "echo_failure" functions which are also in that /etc/init.d/functions file.
The end result is that this
echo_success
echo</pre>
Becomes this
Starting savory Selenium server: [ OK ]
</pre>