Hello! I am using Rclone v1.51.0 on an Ubuntu 18:04.4 LTS machine and my intention is to automatically mount two (or more) remotes using systemd. What should I do to achieve this?
At this moment, I am using the following "rclone.service" for mounting one remote, but I am not able to mount the second one by creating a "rclone2.service" or adding a second [Service] to rclone.service
Thank you in advance for your support
[Unit]
Description=RClone VFS Service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
KillMode=none
Environment=RCLONE_CONFIG=/home/yago/.config/rclone/rclone.conf
ExecStart=/usr/bin/rclone mount peliculas2: /home/peliculas2
--allow-other
--user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36'
--config /home/yago/.config/rclone/rclone.conf
--use-mmap
--drive-skip-gdocs
--dir-cache-time 168h
--timeout 1h
--umask 002
--poll-interval=1m
--vfs-cache-mode writes
--vfs-read-chunk-size 64M
--vfs-read-chunk-size-limit 2048M
--tpslimit 10
--tpslimit-burst 10
ExecStop=/bin/fusermount -uz /home/peliculas2
Restart=on-failure
[Install]
WantedBy=default.target
Information I get when running after reboot systemctl status rclone2.service
● rclone2.service
Loaded: loaded (/etc/systemd/system/rclone2.service; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-02-24 13:48:54 CET; 12s ago
Process: 819 ExecStart=/usr/bin/rclone mount peliculas2: /home/peliculas2 --allow-other --user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 --config /home/yago/.config/rclone/rclone.conf --use-mmap
Main PID: 819 (code=exited, status=1/FAILURE)
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Failed with result 'exit-code'.
Feb 24 13:48:54 PlexServer systemd[1]: Failed to start rclone2.service.
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Service hold-off time over, scheduling restart.
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Scheduled restart job, restart counter is at 5.
Feb 24 13:48:54 PlexServer systemd[1]: Stopped rclone2.service.
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Start request repeated too quickly.
Feb 24 13:48:54 PlexServer systemd[1]: rclone2.service: Failed with result 'exit-code'.
Feb 24 13:48:54 PlexServer systemd[1]: Failed to start rclone2.service.
Feb 24 13:49:07 PlexServer systemd[1]: /etc/systemd/system/rclone2.service:1: Missing '='.