add pidfile for daemon