Signed-off-by: Tim Serong <tserong@suse.com>
enable ceph.target
enable ceph-mds.target
+enable ceph-mgr.target
enable ceph-mon.target
enable ceph-osd.target
enable ceph-radosgw.target
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
--- /dev/null
+[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
--- /dev/null
+[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