Advertisement
astalush

Untitled

Nov 7th, 2019
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. # /etc/systemd/system/rclone_vfs.service
  2. #########################################################################
  3. # Title: Cloudbox: Rclone VFS Mount #
  4. # Author(s): EnorMOZ #
  5. # URL: https://github.com/cloudbox/cloudbox #
  6. # -- #
  7. # Part of the Cloudbox project: https://cloudbox.works #
  8. #########################################################################
  9. # GNU General Public License v3.0 #
  10. #########################################################################
  11.  
  12. [Unit]
  13. Description=Rclone VFS Mount
  14. After=network-online.target
  15.  
  16. [Service]
  17. User=root
  18. Group=root
  19. Type=notify
  20. ExecStartPre=/bin/sleep 10
  21. ExecStart=/usr/bin/rclone mount \
  22. --allow-other \
  23. --fast-list \
  24. --drive-skip-gdocs \
  25. --vfs-read-chunk-size=64M \
  26. --vfs-read-chunk-size-limit=2048M \
  27. --vfs-cache-max-size=4G \
  28. --log-file=/home/astalush/rclone.log \
  29. --buffer-size=64M \
  30. --max-read-ahead=256M \
  31. --poll-interval=1m \
  32. --dir-cache-time=168h \
  33. --timeout=10m \
  34. --transfers=16 \
  35. --drive-chunk-size=64M \
  36. gdrive: /mnt/gdrive
  37. ExecStop=fusermount -uz /mnt/gdrive
  38. Restart=on-abort
  39. RestartSec=5
  40. StartLimitInterval=60s
  41. StartLimitBurst=3
  42.  
  43. [Install]
  44. WantedBy=default.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement