commit 0bb0fd1ac5d414c414dd2d6c31c6c1ec421cb9f7
Author: Jacek Konieczny <[email protected]>
Date:   Tue May 5 10:56:49 2015 +0200

    systemd: reload action added

 [email protected] | 1 +
 [email protected] | 1 +
 [email protected] | 1 +
 cephctl           | 4 ++--
 4 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/[email protected] b/[email protected]
index 22a787d..aec46fd 100644
--- a/[email protected]
+++ b/[email protected]
@@ -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/[email protected] b/[email protected]
index c3d2609..421897d 100644
--- a/[email protected]
+++ b/[email protected]
@@ -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/[email protected] b/[email protected]
index 09f51c5..1e08355 100644
--- a/[email protected]
+++ b/[email protected]
@@ -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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to