Write pidfile on startup, to keep xl happy
Merge pull request #2 from jjd27/master

Write pidfile on startup, to keep xl happy