Now writing the pid of the started daemon