Skip to content

Commit

Permalink
Merge pull request #5787 from SUSE/wip-12923-hammer
Browse files Browse the repository at this point in the history
logrotate reload error on Ubuntu 14.04

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Nov 17, 2015
1 parent ae439f9 commit ad1896c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/logrotate.conf
Expand Up @@ -4,10 +4,10 @@
compress
sharedscripts
postrotate
if which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then
invoke-rc.d ceph reload >/dev/null
elif which service > /dev/null 2>&1 && [ -x `which service` ]; then
if which service > /dev/null 2>&1 && [ -x `which service` ]; then
service ceph reload >/dev/null
elif which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then
invoke-rc.d ceph reload >/dev/null
fi
# Possibly reload twice, but depending on ceph.conf the reload above may be a no-op
if which initctl > /dev/null 2>&1 && [ -x `which initctl` ]; then
Expand Down
6 changes: 3 additions & 3 deletions src/rgw/logrotate.conf
Expand Up @@ -4,10 +4,10 @@
compress
sharedscripts
postrotate
if which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then
invoke-rc.d radosgw reload >/dev/null
elif which service > /dev/null 2>&1 && [ -x `which service` ]; then
if which service > /dev/null 2>&1 && [ -x `which service` ]; then
service ceph-radosgw reload >/dev/null
elif which invoke-rc.d > /dev/null 2>&1 && [ -x `which invoke-rc.d` ]; then
invoke-rc.d radosgw reload >/dev/null
fi
# Possibly reload twice, but depending on ceph.conf the reload above may be a no-op
if which initctl > /dev/null 2>&1 && [ -x `which initctl` ]; then
Expand Down

0 comments on commit ad1896c

Please sign in to comment.