2016-03-18 18:54:35 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph rbd mirror daemon
|
|
|
|
After=network-online.target local-fs.target
|
|
|
|
Wants=network-online.target local-fs.target
|
2017-09-26 12:05:37 +00:00
|
|
|
PartOf=ceph-rbd-mirror.target
|
2016-03-18 18:54:35 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
2016-03-18 18:54:35 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2024-02-13 07:00:58 +00:00
|
|
|
ExecStart=/usr/bin/rbd-mirror -f --id %i --setuser ceph --setgroup ceph
|
2020-05-09 21:41:47 +00:00
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=1048576
|
2019-02-01 19:48:00 +00:00
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
2016-03-18 18:54:35 +00:00
|
|
|
PrivateDevices=yes
|
2020-05-09 21:41:47 +00:00
|
|
|
PrivateTmp=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectControlGroups=true
|
2016-03-18 18:54:35 +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
|
|
|
|
ProtectKernelTunables=true
|
2016-03-18 18:54:35 +00:00
|
|
|
ProtectSystem=full
|
|
|
|
Restart=on-failure
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
2016-03-18 18:54:35 +00:00
|
|
|
StartLimitBurst=3
|
2020-05-09 21:41:47 +00:00
|
|
|
StartLimitInterval=30min
|
2016-04-05 16:32:59 +00:00
|
|
|
TasksMax=infinity
|
2016-03-18 18:54:35 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=ceph-rbd-mirror.target
|