Advertisement
Guest User

new service file

a guest
May 3rd, 2022
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1.  
  2. [Unit]
  3. Description=Gmedia RClone Mount Service
  4. After=network-online.target
  5.  
  6. [Service]
  7. Type=notify
  8. ExecStart=/usr/bin/rclone mount \
  9. --config=/root/.config/rclone/rclone.conf \
  10. --log-level=DEBUG \
  11. --log-file=/opt/rclone/logs/rclone-mount.log \
  12. --user-agent=muffinsdrive \
  13. --umask=002 \
  14. --gid=0 \
  15. --uid=0 \
  16. --allow-other \
  17. --timeout=1h \
  18. --poll-interval=15s \
  19. --dir-cache-time=1000h \
  20. --cache-dir=/opt/rclone/cache/gmedia \
  21. --vfs-cache-mode=full \
  22. --vfs-cache-max-size=150G \
  23. --vfs-cache-max-age=12h \
  24. gdrive-media-crypt: /mnt/gmedia-cloud
  25. ExecStop=/bin/fusermount -uz /mnt/gmedia-cloud
  26. Restart=on-abort
  27. RestartSec=5
  28. StartLimitInterval=60s
  29. StartLimitBurst=3
  30. KillMode=None
  31.  
  32. [Install]
  33. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement