Rclone Service Failed

This systemd script based on @Animosity022's rclone service scripts fails to work.

[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target
Before=docker.service

[Service]
Type=notify
Environment=RCLONE_CONFIG=/root/.config/rclone/rclone.conf

ExecStart=/usr/bin/rclone mount gdtest:/ /mnt/PlexRemote/ \
--dir-cache-time 96h \
--cache-info-age 100h \
--vfs-cache-mode writes \
--allow-other \
--log-level DEBUG \
--log-file /opt/rclone.log \
ExecStop=/bin/fusermount -u /mnt/PlexRemote
User=root
Group=root
Restart=on-failure

[Install]
WantedBy=multi-user.target

systemctl status plexremote-rclone.service shows:

● plexremote-rclone.service - Google Drive (rclone)
   Loaded: loaded (/etc/systemd/system/plexremote-rclone.service; enabled; vendo
r preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2019-07-01 16
:09:04 BST; 9s ago
  Process: 8386 ExecStart=/usr/bin/rclone mount gdtest:/ /mnt/PlexRemote/ --conf
ig=/root/.config/rclone/rclone.conf --dir-cache-time 96h --vfs-cache-mode writes
 --allow-other --log-level DEBUG --log-file /opt/rclone.log --cache-info-age 100
h ExecStop=/bin/fusermount -u /mnt/PlexRemote (code=exited, status=1/FAI
LURE)
 Main PID: 8386 (code=exited, status=1/FAILURE)
      CPU: 16ms

Jul 01 16:09:04 Regency systemd[1]: plexremote-rclone.service: Failed wi
th result 'exit-code'.

You can remove the last \ from the line on the command there and make it

--log-file /opt/rclone.log

The \ are there to show the command continues to the next line as you can have it all on one line. For the last line though, no \ is needed.

1 Like

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