1

I tried to delay the startup of transmission-daemon by changing the /etc/init.d/transmission-daemon to use "sleep 600" in the beginning. But it is still starting right after raspberry is turned on.

Does anyone have an idea?

Ps: I need to delay the startup to avoid "no data found" and wait the mount of my USB HD.

Reference: How do I delay transmission-daemon startup until all shares are mounted?

1 Answers1

2

I found an easy solution.

Since it is being started as service, it is getting the parameters from /lib/systemd/system/transmission.service So, I changed this file adding the sleep 10. It can be even better using RequiresMountsFor parameter

sudo nano /lib/systemd/system/transmission.service

Add following under [Service] section:

ExecStartPre=/bin/sleep 10

Run

systemctl daemon-reload

Reference for better solution: https://unix.stackexchange.com/questions/441894/wait-to-start-transmission-daemon-until-after-usb-drive-has-mounted