added -d flag to bin/processor to save pid file'