Fixing wrong-variable error
Adding rpm to autostart. Checkinf for update-rc.d and chkconfig