2018-12-13 21:36:36 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph immutable object cache daemon
|
|
|
|
After=network-online.target local-fs.target
|
|
|
|
Wants=network-online.target local-fs.target
|
|
|
|
PartOf=ceph-immutable-object-cache.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=CLUSTER=ceph
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
2018-12-13 21:36:36 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2020-05-09 21:41:47 +00:00
|
|
|
ExecStart=/usr/bin/ceph-immutable-object-cache -f --cluster ${CLUSTER} --id %i --setuser ceph --setgroup ceph
|
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
2018-12-13 21:36:36 +00:00
|
|
|
PrivateDevices=yes
|
2020-05-09 21:41:47 +00:00
|
|
|
PrivateTmp=true
|
|
|
|
ProtectControlGroups=true
|
2018-12-13 21:36:36 +00:00
|
|
|
ProtectHome=true
|
2020-05-09 21:41:47 +00:00
|
|
|
ProtectHostname=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
2018-12-13 21:36:36 +00:00
|
|
|
ProtectSystem=full
|
|
|
|
Restart=on-failure
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
2018-12-13 21:36:36 +00:00
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=ceph-immutable-object-cache.target
|