Write pidfile on startup, to keep xl happy