2014-07-20 02:08:43 +00:00
|
|
|
[Unit]
|
2016-07-01 11:55:58 +00:00
|
|
|
Description=Ceph object storage daemon osd.%i
|
2015-10-26 07:13:19 +00:00
|
|
|
PartOf=ceph-osd.target
|
2020-08-25 04:16:54 +00:00
|
|
|
After=network-online.target local-fs.target time-sync.target
|
|
|
|
Before=remote-fs-pre.target ceph-osd.target
|
|
|
|
Wants=network-online.target local-fs.target time-sync.target remote-fs-pre.target ceph-osd.target
|
2014-07-20 02:08:43 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2024-02-13 07:00:58 +00:00
|
|
|
ExecStart=/usr/bin/ceph-osd -f --id %i --setuser ceph --setgroup ceph
|
|
|
|
ExecStartPre=@CMAKE_INSTALL_FULL_LIBEXECDIR@/ceph/ceph-osd-prestart.sh --id %i
|
2020-05-09 21:41:47 +00:00
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
2019-02-01 19:48:00 +00:00
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
# Need NewPrivileges via `sudo smartctl`
|
|
|
|
NoNewPrivileges=false
|
2020-05-09 21:41:47 +00:00
|
|
|
PrivateTmp=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectControlGroups=true
|
2016-01-28 02:17:14 +00:00
|
|
|
ProtectHome=true
|
2020-05-09 21:41:47 +00:00
|
|
|
ProtectHostname=true
|
|
|
|
ProtectKernelLogs=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectKernelModules=true
|
|
|
|
# flushing filestore requires access to /proc/sys/vm/drop_caches
|
|
|
|
ProtectKernelTunables=false
|
2016-01-28 02:17:14 +00:00
|
|
|
ProtectSystem=full
|
2016-03-17 17:54:47 +00:00
|
|
|
Restart=on-failure
|
2019-11-12 08:15:56 +00:00
|
|
|
RestartSec=10
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
|
|
|
StartLimitBurst=3
|
|
|
|
StartLimitInterval=30min
|
|
|
|
TasksMax=infinity
|
2014-07-20 02:08:43 +00:00
|
|
|
|
|
|
|
[Install]
|
2015-10-26 07:13:19 +00:00
|
|
|
WantedBy=ceph-osd.target
|