rewrite init script and adapt daemon.conf consequently