Skip to content

Commit

Permalink
Set logrotate state file
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpingYang001 committed May 9, 2019
1 parent 5a2a017 commit 7a17db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,4 +1,5 @@
language: c
dist: trusty

matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion Unix/installbuilder/datafiles/Linux.data
Expand Up @@ -227,7 +227,7 @@ ConfigureCronForLogRotate()
echo "Set up a cron job to OMI logrotate every 15 minutes"
# create the cron file if it doesn't exist
if [ ! -f /etc/cron.d/omilogrotate ]; then
(echo "*/15 * * * * root /usr/sbin/logrotate /etc/logrotate.d/omi >/dev/null 2>&1" > /etc/cron.d/omilogrotate) > /dev/null 2>&1
(echo "*/15 * * * * root /usr/sbin/logrotate /etc/logrotate.d/omi --state /var/opt/omi/log/omi-logrotate.status >/dev/null 2>&1" > /etc/cron.d/omilogrotate) > /dev/null 2>&1
fi
}

Expand Down

0 comments on commit 7a17db0

Please sign in to comment.