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
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
16 MemoryDenyWriteExecute=true
17 # Need NewPrivileges via `sudo smartctl`
19 ProtectControlGroups=true
21 ProtectKernelModules=true
22 # flushing filestore requires access to /proc/sys/vm/drop_caches
23 ProtectKernelTunables=false
28 StartLimitInterval=30min
33 WantedBy=ceph-osd.target