fix #1885, adds no-daemon flag while generating