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