Add retry if connection drops and fix bug with init.d script
Split off params to separate setter functions