2016-10-19 00:20:34 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph FUSE client
|
|
|
|
After=network-online.target local-fs.target time-sync.target
|
|
|
|
Wants=network-online.target local-fs.target time-sync.target
|
|
|
|
Conflicts=umount.target
|
|
|
|
PartOf=ceph-fuse.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=CLUSTER=ceph
|
2020-05-09 21:41:47 +00:00
|
|
|
EnvironmentFile=-@SYSTEMD_ENV_FILE@
|
2016-10-19 00:20:34 +00:00
|
|
|
ExecStart=/usr/bin/ceph-fuse -f --cluster ${CLUSTER} %I
|
2019-02-01 19:48:00 +00:00
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
# ceph-fuse requires access to /dev fuse device
|
|
|
|
PrivateDevices=no
|
2020-05-09 21:41:47 +00:00
|
|
|
ProtectClock=true
|
2019-02-01 19:48:00 +00:00
|
|
|
ProtectControlGroups=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-10-19 00:20:34 +00:00
|
|
|
Restart=on-failure
|
2020-05-09 21:41:47 +00:00
|
|
|
RestrictSUIDSGID=true
|
2016-10-19 00:20:34 +00:00
|
|
|
StartLimitBurst=3
|
2020-05-09 21:41:47 +00:00
|
|
|
StartLimitInterval=30min
|
|
|
|
TasksMax=infinity
|
2016-10-19 00:20:34 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=ceph-fuse.target
|