Fixing start command to write pid