Skip to content

Commit

Permalink
JENKINS-26982 macosx: configure newsyslog to reset the /var/log/jenki…
Browse files Browse the repository at this point in the history
…ns/ with appropriate permissions
  • Loading branch information
lacostej committed Feb 17, 2015
1 parent 419d670 commit 69d9bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osx/scripts/postinstall-launchd
Expand Up @@ -16,7 +16,7 @@ chown daemon:daemon /var/log/jenkins
cat <<_EOT_ > /etc/newsyslog.d/jenkins.conf
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
# Rotate jenkins log at midnight, and preserve old logs in 3 days
/var/log/jenkins/jenkins.log 644 3 * \$D0 J
/var/log/jenkins/jenkins.log daemon:daemon 644 3 * \$D0 J
_EOT_

# Load and start the launch daemon
Expand Down
2 changes: 1 addition & 1 deletion osx/scripts/postinstall-launchd-jenkins
Expand Up @@ -75,7 +75,7 @@ chown jenkins:jenkins /var/log/jenkins
cat <<_EOT_ > /etc/newsyslog.d/jenkins.conf
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
# Rotate jenkins log at midnight, and preserve old logs in 3 days
/var/log/jenkins/jenkins.log 644 3 * \$D0 J
/var/log/jenkins/jenkins.log jenkins:jenkins 644 3 * \$D0 J
_EOT_

# Load and start the launch daemon
Expand Down

0 comments on commit 69d9bff

Please sign in to comment.