Some cross-platform realisation. No daemon on Windows