Fixed permission issue while restarting daemon