/etc/init.d/functions This file contains functions to be used by most or all shell scripts in the /etc/init.d directory. In this file echo_success & echo_failure functions handles the status of the service. You can modify this function as per your suit.
echo_success() {
[ “$BOOTUP” = “color” ] && $MOVE_TO_COL
echo -n “{”
[ “$BOOTUP” = “color” ] && $SETCOLOR_SUCCESS
echo -n $” SUCCEED “
[ “$BOOTUP” = “color” ] && $SETCOLOR_NORMAL
echo -n “}”
echo -ne “\r”
return 0
}
echo_failure() {
[ “$BOOTUP” = “color” ] && $MOVE_TO_COL
echo -n “{”
[ “$BOOTUP” = “color” ] && $SETCOLOR_FAILURE
echo -n $”DEAD”
[ “$BOOTUP” = “color” ] && $SETCOLOR_NORMAL
echo -n “}”
echo -ne “\r”
return 1
}
In above example I have changed “[” to “{” , “OK” to “SUCCEED” and “FAILED” to “DEAD”