mirror of
https://github.com/ceph/ceph
synced 2024-12-26 05:25:09 +00:00
05424a803b
Before this patch, the command 'logrotate -f /etc/logrotate.d/ceph' was generating an error "Failed to reload ceph.target: Job type reload is not applicable for unit ceph.target". Before we issue systemctl reload, check that there is at least one active ceph-* service. (The hyphen is significant.) Since we use grep, make the grep package a dependency. http://tracker.ceph.com/issues/12173 Fixes: #12173 Signed-off-by: Tim Serong <tserong@suse.com> Signed-off-by: Lars Marowsky-Bree <lmb@suse.com> Signed-off-by: Nathan Cutler <ncutler@suse.com>
15 lines
354 B
Desktop File
15 lines
354 B
Desktop File
[Unit]
|
|
Description=Ceph metadata server daemon
|
|
After=network-online.target local-fs.target
|
|
Wants=network-online.target local-fs.target
|
|
PartOf=ceph.target
|
|
|
|
[Service]
|
|
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
|