]> git.proxmox.com Git - ceph.git/blob - ceph/systemd/ceph-osd@.service.in
Import ceph 15.2.8
[ceph.git] / ceph / systemd / ceph-osd@.service.in
1 [Unit]
2 Description=Ceph object storage daemon osd.%i
3 PartOf=ceph-osd.target
4 After=network-online.target local-fs.target time-sync.target
5 Before=remote-fs-pre.target ceph-osd.target
6 Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-osd.target
7
8 [Service]
9 LimitNOFILE=1048576
10 LimitNPROC=1048576
11 EnvironmentFile=-@SYSTEMD_ENV_FILE@
12 Environment=CLUSTER=ceph
13 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
14 ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
15 ExecReload=/bin/kill -HUP $MAINPID
16 LockPersonality=true
17 MemoryDenyWriteExecute=true
18 # Need NewPrivileges via `sudo smartctl`
19 NoNewPrivileges=false
20 ProtectControlGroups=true
21 ProtectHome=true
22 ProtectKernelModules=true
23 # flushing filestore requires access to /proc/sys/vm/drop_caches
24 ProtectKernelTunables=false
25 ProtectSystem=full
26 PrivateTmp=true
27 TasksMax=infinity
28 Restart=on-failure
29 StartLimitInterval=30min
30 StartLimitBurst=3
31 RestartSec=10
32
33 [Install]
34 WantedBy=ceph-osd.target