]> git.pld-linux.org Git - packages/ceph.git/commitdiff
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 22a787d60b4156f7f3f25ce99baf48fa0144b7fb..aec46fd4eee8787464d46dab32689f92b77650dc 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 c3d260989d7f98e8b6f295ffd68c029a44cb5879..421897dc0d0dac7438f87e71db12ac65f1c070aa 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 09f51c5938bf5b5163df7193e780a7eff7358639..1e08355e52978734e639fc42cba13937892691a8 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 9bd4d908e13a97b428239fa5092925a22690ec14..3fb1d6109ce286981c12a45d3751d607c53e187e 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.196739 seconds and 4 git commands to generate.