2016-09-07 05:39:58 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph cluster manager daemon
|
2017-06-29 17:39:28 +00:00
|
|
|
PartOf=ceph-mgr.target
|
2020-08-25 04:16:54 +00:00
|
|
|
After=network-online.target local-fs.target time-sync.target
|
|
|
|
Before=remote-fs-pre.target ceph-mgr.target
|
|
|
|
Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-mgr.target
|
2016-09-07 05:39:58 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=CLUSTER=ceph
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
2016-09-07 05:39:58 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2020-05-09 21:41:47 +00:00
|
|
|
ExecStart=/usr/bin/ceph-mgr -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
|
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
2019-02-01 19:48:00 +00:00
|
|
|
LockPersonality=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=yes
|
2020-05-09 21:41:47 +00:00
|
|
|
PrivateTmp=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectControlGroups=true
|
|
|
|
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
|
|
|
|
ProtectSystem=full
|
2016-09-07 05:39:58 +00:00
|
|
|
Restart=on-failure
|
2018-02-22 10:53:41 +00:00
|
|
|
RestartSec=10
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
2016-09-07 05:39:58 +00:00
|
|
|
StartLimitBurst=3
|
2020-05-09 21:41:47 +00:00
|
|
|
StartLimitInterval=30min
|
|
|
|
# We need to disable this protection as some python libraries generate
|
|
|
|
# dynamic code, like python-cffi, and require mmap calls to succeed
|
|
|
|
MemoryDenyWriteExecute=false
|
|
|
|
|
2016-09-07 05:39:58 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=ceph-mgr.target
|