From 0bb0fd1ac5d414c414dd2d6c31c6c1ec421cb9f7 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Tue, 5 May 2015 10:56:49 +0200 Subject: [PATCH] systemd: reload action added --- ceph-mds@.service | 1 + ceph-mon@.service | 1 + ceph-osd@.service | 1 + cephctl | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ceph-mds@.service b/ceph-mds@.service index 22a787d..aec46fd 100644 --- a/ceph-mds@.service +++ b/ceph-mds@.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@.service b/ceph-mon@.service index c3d2609..421897d 100644 --- a/ceph-mon@.service +++ b/ceph-mon@.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@.service b/ceph-osd@.service index 09f51c5..1e08355 100644 --- a/ceph-osd@.service +++ b/ceph-osd@.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 -- 2.43.0