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