mirror of
https://github.com/ceph/ceph
synced 2024-12-14 07:25:50 +00:00
7a3a979f3c
For kraken we auto-created mgr daemons next to mon daemons with some systemd hackery. This is awkward (you can't not get a new mgr daemon when you deploy a mon), systemd-specific (not implemented for upstart on trusty), and mostly unexpected. Since ceph-mgr daemons are now first-class citizens and required for every cluster, make their deployment explicit and transparent to the administrator. Major upgrades are a rare opportunity to have the administrator's full attention so take advantage of it. This effectively reverts61d779345e
and082199f69d
(and follow-on fixes). Fixes/avoids: http://tracker.ceph.com/issues/19994 Signed-off-by: Sage Weil <sage@redhat.com>
32 lines
802 B
Desktop File
32 lines
802 B
Desktop File
[Unit]
|
|
Description=Ceph cluster monitor daemon
|
|
|
|
# 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 time-sync.target
|
|
Wants=network-online.target local-fs.target time-sync.target
|
|
|
|
PartOf=ceph-mon.target
|
|
|
|
[Service]
|
|
LimitNOFILE=1048576
|
|
LimitNPROC=1048576
|
|
EnvironmentFile=-/etc/sysconfig/ceph
|
|
Environment=CLUSTER=ceph
|
|
ExecStart=/usr/bin/ceph-mon -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
PrivateDevices=yes
|
|
ProtectHome=true
|
|
ProtectSystem=full
|
|
PrivateTmp=true
|
|
TasksMax=infinity
|
|
Restart=on-failure
|
|
StartLimitInterval=30min
|
|
StartLimitBurst=5
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=ceph-mon.target
|