Last active
March 14, 2024 09:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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