From: Jacek Konieczny Date: Tue, 5 May 2015 09:00:21 +0000 (+0200) Subject: logrotate: use cephctl, so it works with systemd X-Git-Tag: auto/th/ceph-0.94.1-3~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fceph.git;a=commitdiff_plain;h=dd6fa3415d92b3e16d325653e100ff6488545cf8 logrotate: use cephctl, so it works with systemd --- diff --git a/ceph.logrotate.patch b/ceph.logrotate.patch index 74bbca9..6da864c 100644 --- a/ceph.logrotate.patch +++ b/ceph.logrotate.patch @@ -23,7 +23,7 @@ - done - done - fi -+ service ceph reload >/dev/null 2>/dev/null ++ cephctl reload >/dev/null 2>/dev/null endscript missingok notifempty diff --git a/cephctl b/cephctl index 3fb1d61..fce0240 100644 --- a/cephctl +++ b/cephctl @@ -3,6 +3,8 @@ # It seems this was designed as /etc/init.d/ceph script for controlling the systemd # units on SuSE, made into 'cephctl' for PLD +systemd_booted 2>/dev/null || exec /etc/rc.d/init.d/ceph "$@" + action=$1 ; shift [ -f /etc/sysconfig/ceph ] && . /etc/sysconfig/ceph cluster=${CLUSTER:-ceph}