forked from SimpleHomelab/docker-traefik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe1c415
commit 9855b67
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[Unit] | ||
Description=Rclone NAS SMB | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
# https://forum.rclone.org/t/some-help-with-rclone-mount-for-plex-buffering-everywhere/18201/23 | ||
# https://forum.rclone.org/t/unable-to-start-rclone-service/32149/7 | ||
Type=notify | ||
ExecStart=/usr/bin/rclone mount ds918: /media/rclone/ds918 \ | ||
#--read-only \ | ||
--config /home/anand/docker/appdata/rclone/rclone.conf \ | ||
--log-file=/home/anand/docker/logs/hs/rclone-ds918.log \ | ||
--log-level NOTICE \ | ||
--allow-other \ | ||
--no-modtime \ | ||
--umask 002 \ | ||
--user-agent home-server \ | ||
--dir-cache-time 24h \ | ||
--buffer-size 128M \ | ||
--vfs-fast-fingerprint \ | ||
--vfs-cache-mode full \ | ||
--vfs-cache-max-age 336h \ | ||
--cache-dir=/media/ssd/hs/cache/ds918 \ | ||
--vfs-cache-max-size 896G \ | ||
--vfs-read-chunk-size-limit 10G \ | ||
--vfs-refresh \ | ||
--rc \ | ||
--rc-web-gui \ | ||
--rc-addr :5572 \ | ||
--rc-web-gui-no-open-browser \ | ||
--rc-no-auth \ | ||
#--rc-user=$RCLONE_WEBUI_USER \ | ||
#--rc-pass=$RCLONE_WEBUI_PASS \ | ||
--use-mmap | ||
ExecStop=/bin/fusermount -uz /media/rclone/ds918 | ||
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr :5572 _async=true | ||
Restart=on-abort | ||
User=anand | ||
Group=anand | ||
KillMode=mixed | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=default.target |