Skip to content

Commit

Permalink
Fully qualify syslog reload command when logrotating
Browse files Browse the repository at this point in the history
[#128100031]

Files in the cron.d directory do not inherit env variables from crontab
file, unlike the fils in the hourly, daily,... directories.

Signed-off-by: Tyler Schultz <[email protected]>
  • Loading branch information
zaksoup authored and tylerschultz committed Aug 11, 2016
1 parent dfe1a14 commit b1f218e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bosh-stemcell/spec/support/os_image_shared_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
it { should be_file }

it 'should reload rsyslog on rotate' do
should contain 'reload rsyslog >/dev/null 2>&1 || true'
should contain '/sbin/reload rsyslog >/dev/null 2>&1 || true'
end

it 'should not restart rsyslog on rotate so that logs are not lost' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
delaycompress
compress
postrotate
reload rsyslog >/dev/null 2>&1 || true
/sbin/reload rsyslog >/dev/null 2>&1 || true
endscript
}

Expand All @@ -32,6 +32,6 @@
delaycompress
sharedscripts
postrotate
reload rsyslog >/dev/null 2>&1 || true
/sbin/reload rsyslog >/dev/null 2>&1 || true
endscript
}

0 comments on commit b1f218e

Please sign in to comment.