Fixed stop issue with init script and added support fo sysconfig