Modified the Upstart job script to properly set pid and log file permissions.