--pid now creates a pid file