remove useless logs
add restartController function
remove log in /usr/local/var/log/cozy if exists