[packages/ceph] systemd: reload action added

jajcus jajcus at pld-linux.org
Tue May 12 15:21:46 CEST 2015


commit 0bb0fd1ac5d414c414dd2d6c31c6c1ec421cb9f7
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Tue May 5 10:56:49 2015 +0200

    systemd: reload action added

 ceph-mds at .service | 1 +
 ceph-mon at .service | 1 +
 ceph-osd at .service | 1 +
 cephctl           | 4 ++--
 4 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ceph-mds at .service b/ceph-mds at .service
index 22a787d..aec46fd 100644
--- a/ceph-mds at .service
+++ b/ceph-mds at .service
@@ -8,6 +8,7 @@ PartOf=ceph.target
 EnvironmentFile=-/etc/sysconfig/ceph
 Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mds -f --cluster ${CLUSTER} --id %i
+ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=ceph.target
diff --git a/ceph-mon at .service b/ceph-mon at .service
index c3d2609..421897d 100644
--- a/ceph-mon at .service
+++ b/ceph-mon at .service
@@ -15,6 +15,7 @@ PartOf=ceph.target
 EnvironmentFile=-/etc/sysconfig/ceph
 Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i
+ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
 WantedBy=ceph.target
diff --git a/ceph-osd at .service b/ceph-osd at .service
index 09f51c5..1e08355 100644
--- a/ceph-osd at .service
+++ b/ceph-osd at .service
@@ -9,6 +9,7 @@ EnvironmentFile=-/etc/sysconfig/ceph
 Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i
 ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
+ExecReload=/bin/kill -HUP $MAINPID
 LimitNOFILE=131072
 
 [Install]
diff --git a/cephctl b/cephctl
index 9bd4d90..3fb1d61 100644
--- a/cephctl
+++ b/cephctl
@@ -25,7 +25,7 @@ if test -n "$config" ; then
 	systemctl "${action}" "ceph-mon@${config}.service" || RC=1
 else
 	case $action in
-    start | stop | status | enable | disable | restart | is-active | is-failed | show | kill | reset-failed  )
+    start | stop | status | enable | disable | restart | is-active | is-failed | show | kill | reset-failed | reload )
         n=0
         if test -n ${lmon} ; then
             for s in ${lmon#=${prefix}} ; do
@@ -44,7 +44,7 @@ else
     ;;
 	*)
 		echo "Invalid paramter : $action"
-        echo "Valid paramters  : start | stop | status | enable | disable | restart | is-active | is-failed | show | kill | reset-failed"
+        echo "Valid paramters  : start | stop | status | enable | disable | restart | is-active | is-failed | show | kill | reset-failed | reload"
 	;;
 	esac
 fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/bef2a0adcd4524aa642815f98eacbec842270e2a



More information about the pld-cvs-commit mailing list