Last active
September 20, 2020 21:22
-
-
Save vijinho/1a239fa902fc600b88bece033f0f9ac6 to your computer and use it in GitHub Desktop.
Simple example of running an rcloned sftpd service on ubuntu/popos. place in "/etc/systemd/system/rcloned.service" then "systemctl daemon-reload" then "systemctl enable rcloned.service" and it should be up on next reboot.
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 sftp service | |
Documentation=man:rclone(1) | |
After=network.target auditd.service | |
[Service] | |
ExecStart=rclone serve sftp --no-auth --addr :2022 \ | |
--vfs-cache-mode full \ | |
--vfs-cache-max-age 10m \ | |
--vfs-cache-max-size 32768 \ | |
--vfs-cache-poll-interval 3m \ | |
--vfs-read-chunk-size 8M \ | |
--vfs-read-chunk-size-limit 4096M \ | |
--transfers 8 \ | |
--multi-thread-streams 8 \ | |
--multi-thread-cutoff 2048M \ | |
--cache-dir=/var/cache/rcloned \ | |
-vv /mnt/data | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillMode=process | |
Restart=on-failure | |
RestartPreventExitStatus=255 | |
Type=notify | |
RuntimeDirectory=rcloned | |
RuntimeDirectoryMode=0755 | |
[Install] | |
WantedBy=multi-user.target | |
Alias=rcloned.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment