uupdated initscript to support chkconfig