]> git.pld-linux.org Git - packages/ceph.git/blob - ceph.logrotate.patch
- updated to 0.54
[packages/ceph.git] / ceph.logrotate.patch
1 --- ceph-0.54/src/logrotate.conf.orig   2012-11-15 21:05:38.519614603 +0100
2 +++ ceph-0.54/src/logrotate.conf        2012-11-15 21:09:14.862943424 +0100
3 @@ -4,21 +4,7 @@
4      compress
5      sharedscripts
6      postrotate
7 -        if [ -x `which invoke-rc.d` ]; then
8 -            invoke-rc.d ceph reload >/dev/null
9 -        elif [ -x `which service` ]; then
10 -            service ceph reload >/dev/null
11 -        elif [ -x `which initctl` ]; then
12 -            # upstart reload isn't very helpful here:
13 -            #   https://bugs.launchpad.net/upstart/+bug/1012938
14 -            for type in mon osd mds; do
15 -               initctl list \
16 -                   | perl -ne 'print "$+{service} cluster=$+{cluster} id=$+{id}\n" if m{^(?<service>ceph-(mon|osd|mds)+)\s+\((?<cluster>[^/)]+)/(?<id>[^)]+)\) start/}' \
17 -                   | while read l; do
18 -                   initctl reload -- $l 2>/dev/null || :
19 -               done
20 -            done
21 -        fi
22 +            service ceph reload >/dev/null 2>/dev/null
23      endscript
24      missingok
25  }
This page took 0.074488 seconds and 4 git commands to generate.