Rclone systemd startup multiple mounts

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 '='.

You can do as many mounts as you want. You'd just need to make sure the mount points are unique.

If you use three backtics

Like

this

at the start and end of a code block, it'll make it code.

You have an error in your rclone2.service as noted in the systemd output but it's a bit hard to tell where it is. It seems like it is on line 1.

I checked the code again, and yes, it was a typo (copy&paste mistake) on the first line. I was missing "[" in [Unit], now it works perfectly.

Thank you for the support