]> git.proxmox.com Git - ceph.git/blame - ceph/systemd/ceph-mgr@.service.in
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / systemd / ceph-mgr@.service.in
CommitLineData
7c673cae
FG
1[Unit]
2Description=Ceph cluster manager daemon
224ce89b 3PartOf=ceph-mgr.target
f91f0fd5
TL
4After=network-online.target local-fs.target time-sync.target
5Before=remote-fs-pre.target ceph-mgr.target
6Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-mgr.target
7c673cae
FG
7
8[Service]
7c673cae 9Environment=CLUSTER=ceph
f67539c2 10EnvironmentFile=-@SYSTEMD_ENV_FILE@
7c673cae 11ExecReload=/bin/kill -HUP $MAINPID
f67539c2
TL
12ExecStart=/usr/bin/ceph-mgr -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
13LimitNOFILE=1048576
14LimitNPROC=1048576
11fdf7f2 15LockPersonality=true
11fdf7f2
TL
16NoNewPrivileges=true
17PrivateDevices=yes
f67539c2
TL
18PrivateTmp=true
19ProtectClock=true
11fdf7f2
TL
20ProtectControlGroups=true
21ProtectHome=true
f67539c2
TL
22ProtectHostname=true
23ProtectKernelLogs=true
11fdf7f2
TL
24ProtectKernelModules=true
25ProtectKernelTunables=true
26ProtectSystem=full
7c673cae 27Restart=on-failure
94b18763 28RestartSec=10
f67539c2 29RestrictSUIDSGID=true
7c673cae 30StartLimitBurst=3
f67539c2
TL
31StartLimitInterval=30min
32# We need to disable this protection as some python libraries generate
33# dynamic code, like python-cffi, and require mmap calls to succeed
34MemoryDenyWriteExecute=false
7c673cae
FG
35
36[Install]
37WantedBy=ceph-mgr.target