0

Operating System: Kubuntu Noble (24.04.02 LTS)

I have 4 services that execute rclone mounts for ftp sites.

$ rclone config
Current remotes:

Name Type ==== ==== subdomain1.domain1.eu ftp subdomain2.domain2.net ftp domain3.be ftp domain4 ftp

The service files are all pretty much the same:

~/.config/systemd/user/rclone_subdomain1.service

[Unit]
Description=RClone subdomain1.domain1.eu Service
Wants=network-online.target
After=network-online.target

[Service] Type=notify KillMode=process RestartSec=5 ExecStart=/usr/bin/rclone mount --config /home/username/.config/rclone/rclone.conf subdomain1.domain1.eu: /home/username/subdomain1.domain1.eu

[Install] WantedBy=default.target

~/.config/systemd/user/rclone_subdomain2.domain2.net.service

[Unit]
Description=RClone subdomain2.domain2.net Service
Wants=network-online.target
After=network-online.target

[Service] Type=notify KillMode=process RestartSec=5 ExecStart=/usr/bin/rclone mount --config /home/username/.config/rclone/rclone.conf subdomain2.domain2.net:folder/subfolder /home/username/subdomain2.domain2.net

[Install] WantedBy=default.target

~/.config/systemd/user/rclone_domain3.service

[Unit]
Description=RClone domain3.be Service
Wants=network-online.target
After=network-online.target

[Service] Type=notify KillMode=process RestartSec=5 ExecStart=/usr/bin/rclone mount --config /home/username/.config/rclone/rclone.conf domain3.be: /home/username/domain3.be

[Install] WantedBy=default.target

~/.config/systemd/user/rclone_domain4.service

[Unit]
Description=RClone domain4 Service
Wants=network-online.target
After=network-online.target

[Service] Type=notify KillMode=process RestartSec=5 ExecStart=/usr/bin/rclone mount --config /home/username/.config/rclone/rclone.conf domain4: /home/username/domain4

[Install] WantedBy=default.target

All of those services work when executed manually and result in functioning mount points. All of them were enabled with systemctl --user enable <service>.

Now when I boot/log in, I have the domain3.be and domain4 services running. The other 2 haven't been started, according to journalctl. No error messages, no nothing.

$ systemctl --user list-unit-files --type=service

rclone_subdomain1.service enabled enabled rclone_subdomain2.domain2.net.service enabled enabled rclone_domain3.service enabled enabled rclone_domain4.service enabled enabled

$ systemctl --user status rclone_subdomain1 ○ rclone_subdomain1.service - RClone subdomain1.domain1.eu Service Loaded: loaded (/home/username/.config/systemd/user/rclone_subdomain1.service; enabled; preset: enabled) Active: inactive (dead) $ systemctl --user status rclone_subdomain2.domain2.net ○ rclone_subdomain2.domain2.net.service - RClone subdomain2.domain2.net Service Loaded: loaded (/home/username/.config/systemd/user/rclone_subdomain2.domain2.net.service; enabled; preset: en> Active: inactive (dead)

But systemctl --user start rclone_subdomain2.domain2.net starts the service flawlessly.

I'm out of ideas. Can anyone help me get the two dead services started on login?

Thanks.

DavidPostill
  • 162,382

0 Answers0