diff options
Diffstat (limited to 'systemd/ceph-fuse@.service.in')
-rw-r--r-- | systemd/ceph-fuse@.service.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/systemd/ceph-fuse@.service.in b/systemd/ceph-fuse@.service.in new file mode 100644 index 00000000..d603042b --- /dev/null +++ b/systemd/ceph-fuse@.service.in @@ -0,0 +1,26 @@ +[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] +EnvironmentFile=-@SYSTEMD_ENV_FILE@ +Environment=CLUSTER=ceph +ExecStart=/usr/bin/ceph-fuse -f --cluster ${CLUSTER} %I +LockPersonality=true +MemoryDenyWriteExecute=true +NoNewPrivileges=true +# ceph-fuse requires access to /dev fuse device +PrivateDevices=no +ProtectControlGroups=true +ProtectKernelModules=true +ProtectKernelTunables=true +TasksMax=infinity +Restart=on-failure +StartLimitInterval=30min +StartLimitBurst=3 + +[Install] +WantedBy=ceph-fuse.target |