Skip to content

Instantly share code, notes, and snippets.

@goooooouwa
Last active March 14, 2024 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goooooouwa/db520b0548353fb631653c0e96e368b6 to your computer and use it in GitHub Desktop.
Save goooooouwa/db520b0548353fb631653c0e96e368b6 to your computer and use it in GitHub Desktop.
rclone mount alist systemctl service. https://willxup.top/archives/deploy-alist-and-rclone
/usr/bin/rclone mount alist:/ /volume2/CloudDrive/alist --config /volume1/homes/admin/.config/rclone/rclone.conf --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap --network-mode --cache-dir /volume2/CloudNAS/cache --vfs-cache-mode full --header "Referer:" --dir-cache-time 24h --buffer-size 512M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 64M --vfs-cache-max-size 10G
# Unmount
fusermount -u /volume2/CloudDrive/alist
[Unit]
Description=rclone
Before=docker.service
[Service]
User=greg
ExecStart=/usr/bin/rclone mount alist:/ /home/greg/alist --config /home/greg/.config/rclone/rclone.conf --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --use-mmap --network-mode --cache-dir /home/greg/cache --vfs-cache-mode full --header "Referer:" --dir-cache-time 24h --buffer-size 512M --vfs-read-chunk-size 16M --vfs-read-chunk-size-limit 64M --vfs-cache-max-size 10G
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment