aboutsummaryrefslogtreecommitdiff
path: root/system/jenkins/files/logrotate.jenkins
diff options
context:
space:
mode:
Diffstat (limited to 'system/jenkins/files/logrotate.jenkins')
-rw-r--r--system/jenkins/files/logrotate.jenkins3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/jenkins/files/logrotate.jenkins b/system/jenkins/files/logrotate.jenkins
index f6b40db07baf..f1bc7f0f11e3 100644
--- a/system/jenkins/files/logrotate.jenkins
+++ b/system/jenkins/files/logrotate.jenkins
@@ -1,4 +1,5 @@
/var/log/jenkins/jenkins.log /var/log/jenkins/jenkins_console.log {
+ su jenkins jenkins
compress
dateext
maxage 365
@@ -8,6 +9,6 @@
missingok
create 644
postrotate
- kill -s SIGALRM `cat /var/run/jenkins.pid`
+ kill -s SIGALRM $(cat /var/run/jenkins.pid)
endscript
}