2014-07-20 02:08:43 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph cluster monitor daemon
|
2020-08-25 04:16:54 +00:00
|
|
|
PartOf=ceph-mon.target
|
2014-07-20 02:08:43 +00:00
|
|
|
# According to:
|
|
|
|
# http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
|
|
|
|
# these can be removed once ceph-mon will dynamically change network
|
|
|
|
# configuration.
|
2016-05-25 11:18:37 +00:00
|
|
|
After=network-online.target local-fs.target time-sync.target
|
2020-08-25 04:16:54 +00:00
|
|
|
Before=remote-fs-pre.target ceph-mon.target
|
|
|
|
Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-mon.target
|
2014-07-20 02:08:43 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
2015-06-26 11:13:33 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2024-02-13 07:00:58 +00:00
|
|
|
ExecStart=/usr/bin/ceph-mon -f --id %i --setuser ceph --setgroup ceph
|
2020-05-09 21:41:47 +00:00
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
2019-02-01 19:48:00 +00:00
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
# Need NewPrivileges via `sudo smartctl`
|
|
|
|
NoNewPrivileges=false
|
2021-12-06 08:29:43 +00:00
|
|
|
# We need access to block devices to check the health of the disk backing the
|
|
|
|
# monitor DB store. It can be set to `true` if you're not interested in that
|
|
|
|
# feature.
|
|
|
|
PrivateDevices=false
|
2020-05-09 21:41:47 +00:00
|
|
|
PrivateTmp=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectControlGroups=true
|
2016-01-28 02:17:14 +00:00
|
|
|
ProtectHome=true
|
2020-05-09 21:41:47 +00:00
|
|
|
ProtectHostname=true
|
|
|
|
ProtectKernelLogs=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
2016-01-28 02:17:14 +00:00
|
|
|
ProtectSystem=full
|
2016-03-17 17:54:47 +00:00
|
|
|
Restart=on-failure
|
2017-01-23 07:18:27 +00:00
|
|
|
RestartSec=10
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
|
|
|
StartLimitBurst=5
|
|
|
|
StartLimitInterval=30min
|
|
|
|
TasksMax=infinity
|
2014-07-20 02:08:43 +00:00
|
|
|
|
|
|
|
[Install]
|
2015-10-26 07:13:19 +00:00
|
|
|
WantedBy=ceph-mon.target
|