Advertisement
T3rrorbyte

Rclone.service V3

Jan 6th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. # /etc/systemd/system/rclone.service (mine after it has been updated)
  2. [Unit]
  3. Description=GDrive (rclone)
  4. RequiresMountsFor=/mnt/downloadhd/gdrive
  5. After=network-online.target
  6.  
  7. [Service]
  8. Type=notify
  9. ExecStart=/usr/bin/rclone mount gdrive: /mnt/downloadhd/gdrive \
  10. --config /home/container/.config/rclone/rclone.conf \
  11. --allow-other \
  12. --allow-non-empty \
  13. --dir-cache-time 1000h \
  14. --poll-interval 15s \
  15. --vfs-cache-mode full \
  16. --vfs-cache-max-age 24h \
  17. --vfs-read-ahead 100G \
  18. --vfs-read-chunk-size 512M \
  19. --vfs-read-chunk-size-limit 2G \
  20. --vfs-cache-max-size 500G \
  21. --buffer-size 512M \
  22. --log-level INFO \
  23. --log-file /home/container/logs/rclone.log
  24. ExecStop=/bin/fusermount -uz /mnt/downloadhd/gdrive
  25. Restart=on-failure
  26. RestartSec=10
  27. KillMode=none
  28. User=container
  29. Group=container
  30.  
  31. [Install]
  32. WantedBy=default.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement