commit dd6fa3415d92b3e16d325653e100ff6488545cf8
Author: Jacek Konieczny <[email protected]>
Date: Tue May 5 11:00:21 2015 +0200
logrotate: use cephctl, so it works with systemd
ceph.logrotate.patch | 2 +-
cephctl | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
---
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}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/bef2a0adcd4524aa642815f98eacbec842270e2a
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit