From: Tim Serong Date: Wed, 7 Sep 2016 05:39:58 +0000 (+1000) Subject: systemd: add ceph-mgr service and target files X-Git-Tag: v11.0.1~60^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d8ded57a87a9cdb7fd74af24c3c3e9321322d19d;p=ceph.git systemd: add ceph-mgr service and target files Signed-off-by: Tim Serong --- diff --git a/systemd/50-ceph.preset b/systemd/50-ceph.preset index 5b8cfa48b0d6..34c0801f9f2b 100644 --- a/systemd/50-ceph.preset +++ b/systemd/50-ceph.preset @@ -1,5 +1,6 @@ enable ceph.target enable ceph-mds.target +enable ceph-mgr.target enable ceph-mon.target enable ceph-osd.target enable ceph-radosgw.target diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt index 31767d6d019d..8178a70a462b 100644 --- a/systemd/CMakeLists.txt +++ b/systemd/CMakeLists.txt @@ -1,11 +1,13 @@ install(FILES ceph.target ceph-osd.target + ceph-mgr.target ceph-mon.target ceph-mds.target ceph-radosgw.target ceph-rbd-mirror.target ceph-mds@.service + ceph-mgr@.service ceph-mon@.service ceph-create-keys@.service ceph-osd@.service diff --git a/systemd/ceph-mgr.target b/systemd/ceph-mgr.target new file mode 100644 index 000000000000..72be8e8e9eb9 --- /dev/null +++ b/systemd/ceph-mgr.target @@ -0,0 +1,5 @@ +[Unit] +Description=ceph target allowing to start/stop all ceph-mgr@.service instances at once +PartOf=ceph.target +[Install] +WantedBy=multi-user.target ceph.target diff --git a/systemd/ceph-mgr@.service b/systemd/ceph-mgr@.service new file mode 100644 index 000000000000..669f47d9290b --- /dev/null +++ b/systemd/ceph-mgr@.service @@ -0,0 +1,19 @@ +[Unit] +Description=Ceph cluster manager daemon +After=network-online.target local-fs.target time-sync.target +Wants=network-online.target local-fs.target time-sync.target +PartOf=ceph-mgr.target + +[Service] +LimitNOFILE=1048576 +LimitNPROC=1048576 +EnvironmentFile=-/etc/sysconfig/ceph +Environment=CLUSTER=ceph +ExecStart=/usr/bin/ceph-mgr -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=3 + +[Install] +WantedBy=ceph-mgr.target