I am using this script https://github.com/ajkis/scripts
Here is my rclone-mount.service
[Unit]
Description=rclone Amazon Cloud Drive FUSE mount
Documentation=http://rclone.org/docs/
After=network-online.target
[Service]
Type=forking
User=ubuntu
Group=ubuntu
/home/ubuntu/media &
ExecStart= /usr/sbin/rclone mount --log-file /home/ubuntu/rclone.logs --umask 0 --allow-other --max-read-ahead 200M secret: /home/ubuntu/media &
ExecStop= /bin/fusermount -uz /home/ubuntu/media
[Install]
Wants=network-online.target
ran this command sudo systemctl start rclone-mount.service
and i get this error
Feb 01 13:01:32 xx.xx.xx systemd[1]: Starting rclone Amazon Cloud Drive FUSE mount…
Feb 01 13:01:32 xx.xx.xx systemd[1]: rclone-mount.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 13:01:32 xx.xx.xx systemd[1]: Failed to start rclone Amazon Cloud Drive FUSE mount.
Feb 01 13:01:32 xx.xx.xx systemd[1]: rclone-mount.service: Unit entered failed state.
Feb 01 13:01:32 xx.xx.xx systemd[1]: rclone-mount.service: Failed with result ‘exit-code’.
Also if I run this rclone mount --log-file /home/ubuntu/rclone.logs --umask 0 --allow-other --max-read-ahead 200M secret: media it works without an errors