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