systemd: reload action added
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 5 May 2015 08:56:49 +0000 (10:56 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 12 May 2015 13:19:24 +0000 (15:19 +0200)
ceph-mds@.service
ceph-mon@.service
ceph-osd@.service
cephctl

index 22a787d..aec46fd 100644 (file)
@@ -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
index c3d2609..421897d 100644 (file)
@@ -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
index 09f51c5..1e08355 100644 (file)
@@ -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 (file)
--- 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
This page took 0.376207 seconds and 4 git commands to generate.