Advertisement
Guest User

Untitled

a guest
Nov 11th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. [Unit]
  2. Description=RClone Service
  3. Wants=network-online.target
  4. After=network-online.target
  5.  
  6. [Service]
  7. Type=notify
  8. Environment=RCLONE_CONFIG=/root/.config/rclone/rclone.conf
  9. KillMode=none
  10. RestartSec=1
  11. ExecStart=/usr/bin/rclone mount gdrive: /mnt/remote \
  12. --dir-cache-time 5000h \
  13. --log-level INFO \
  14. --allow-non-empty \
  15. --poll-interval 10s \
  16. --umask 002 \
  17. --user-agent someappname101 \
  18. --cache-dir=/tmp/cache \
  19. --drive-pacer-min-sleep 10ms \
  20. --drive-pacer-burst 200 \
  21. --vfs-cache-mode full \
  22. --vfs-cache-max-size 50G \
  23. --vfs-cache-max-age 5000h \
  24. --vfs-cache-poll-interval 5m \
  25. --vfs-read-ahead 2G \
  26. --bwlimit-file 32M
  27. StandardOutput=file:/root/scripts/rclone_mount.log
  28. ExecStop=/bin/fusermount -uz /mnt/remote
  29. ExecStartPost=/usr/bin/rclone vfs/refresh recursive=true _async=true
  30. Restart=always
  31. User=root
  32. Group=root
  33.  
  34. [Install]
  35. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement