Skip to content

Instantly share code, notes, and snippets.

@virtadpt
Forked from klutchell/s3fs.service
Created July 26, 2023 22:29
Show Gist options
  • Select an option

  • Save virtadpt/8ff64961d14911ceb259e4b096a9cd5d to your computer and use it in GitHub Desktop.

Select an option

Save virtadpt/8ff64961d14911ceb259e4b096a9cd5d to your computer and use it in GitHub Desktop.

Revisions

  1. @klutchell klutchell created this gist Oct 6, 2019.
    14 changes: 14 additions & 0 deletions s3fs.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    Description=S3FS FUSE mount
    Documentation=https://github.com/s3fs-fuse/s3fs-fuse
    Wants=network-online.target
    After=network-online.target
    AssertPathIsDirectory=/mnt/s3fs

    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/usr/bin/s3fs mybucket:/bucketdir /mnt/s3fs -o url=https://nyc3.digitaloceanspaces.com -o use_cache=/tmp -o allow_other -o use_path_request_style -o uid=1000 -o gid=1000
    ExecStop=/bin/fusermount -u /mnt/s3fs

    [Install]
    WantedBy=default.target