mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +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>
22 lines
580 B
Desktop File
22 lines
580 B
Desktop File
[Unit]
|
|
Description=Ceph cluster monitor daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
# According to:
|
|
# http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
|
|
# these can be removed once ceph-mon will dynamically change network
|
|
# configuration.
|
|
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-mon -f --cluster ${CLUSTER} --id %i
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
[Install]
|
|
WantedBy=ceph.target
|