Advertisement
Senfgurke1969

Untitled

Jan 30th, 2025
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. [Unit]
  2. Description=rclone: Remote FUSE filesystem for cloud storage config %i mounted at %h/Mount/%I/%i
  3. Documentation=man:rclone(1)
  4. After=network-online.target
  5. Wants=network-online.target
  6.  
  7. [Service]
  8. Type=notify
  9. ExecStartPre=/bin/mkdir -p %h/Mount/%I/%n
  10. ExecStart=/usr/bin/rclone mount \
  11.     --config=%h/.config/rclone/rclone.conf \
  12.     --vfs-cache-mode writes \
  13.     --vfs-cache-max-size 100M \
  14.     --log-level INFO \
  15.     --umask 022 \
  16.     %i:%h/Mount/%I/%i
  17. ExecStop=/bin/fusermount -u %h/Mount/%I/%i
  18.  
  19. [Install]
  20. WantedBy=default.target
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement