Rclone service files


I have gotten my self a DSM ds2411+ and want to use rclone on it with dropbox access aswell...
and systemctl is not a thing on the DSM, so what do I do to get the service file running?

that has been discussed in the forum.....

ohh, have not found that thread yet

you would run rclone, same as you would run any executable on synology.
rclone has no special features specific to synology.

That is correct, I may have spoken wrongfully here! sorry

What I mean is : how to start a service with this kind of content:

Description=RClone VFS Service

ExecStart=/bin/rclone mount dropbox-crypt:drive1/ /homes/klapvogn/data/shared-drives/drive-01 \
--use-mmap \
# This is for allowing users other than the user running rclone access to the mount
--allow-other \
# log file
--log-file /homes/klapvogn/.config/rclone/rclone-dropbox-shared-data-01.log \
#--log-level DEBUG \
# Google Drive is a polling remote so this value can be set very high and any changes are detected via polling.
--dir-cache-time 5000h \
# I reduce the poll interval down to 10 seconds as this makes changes appear fast the API quotas per day are huge
--poll-interval 10s \
# This is setting the file permission on the mount to user and group have the same access and other can read
--umask 002 \
# Please set this to your own value below
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36' \
# This sets up the remote control daemon so you can issue rc commands locally
--rc \
# This is the default port it runs on
--rc-addr :6601 \
# no-auth is used as no one else uses my server and it is not a shared seedbox
--rc-no-auth \
# The local disk used for caching
--cache-dir=/homes/klapvogn/.cache/dropbox-01 \
# My quota per user / per 100 seconds is 20,000 requests. This can be found in your quota section.
# This changes the sleep calls to something much lower to take advantage of the API boost.
# change the min sleep from 100ms
--drive-pacer-min-sleep 10ms \
# Changing to have the ability to burst higher
--drive-pacer-burst 200 \
# This is used for caching files to local disk for streaming OLD - full
--vfs-cache-mode writes \
# This limits the cache size to the value below - 1000G
--vfs-cache-max-size 100G \
# This limits the age in the cache if the size is reached and it removes the oldest files first
--vfs-cache-max-age 5000h \
# The polling interval for increased based on there is enough buffer space
--vfs-cache-poll-interval 5m \
# Add read ahead buffer to network latency issues - 2G
--vfs-read-ahead 512M \
--buffer-size 1G \
# This sets a per file bandwidth control and I limit this to a little bigger than my largest bitrate I'd want to play
#--bwlimit-file 32M \
--tpslimit 10
ExecStop=/bin/fusermount -uz /homes/klapvogn/data/shared-drives/drive-01
ExecStartPost=/bin/rclone rc vfs/refresh recursive=true --rc-addr _async=true


cannot use service files on a synbox.

run rclone the same as you would run any executable.

Thanks i'll have a look at that :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.