add init script and daemonize