Message ID | F40EEEA9-2D0B-41E3-8C5A-D84AADFFED88@inktank.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/logrotate.conf b/src/logrotate.conf index 9af3104..0a4a5a2 100644 --- a/src/logrotate.conf +++ b/src/logrotate.conf @@ -15,7 +15,7 @@ # https://bugs.launchpad.net/upstart/+bug/1012938 for type in mon osd mds; do initctl list \ - | perl -ne 'print "$+{service} cluster=$+{cluster} id=$+{id}\n" if m{^(?<service>ceph-(mon|osd|mds)+)\s+\((?<cluster>[^/)]+)/(?<id>[^)]+)\) start/}' \ + | sed -n 's/^\(ceph-\(mon\|osd\|mds\)\+\)[ \t]\+(\([^ \/]\+\)\/\([^ \/]\+\))[ \t]\+start\/.*$/\1 cluster=\3 id=\4/p' \ | while read l; do initctl reload -- $l 2>/dev/null || :