How to start rtorrent after rc.local?


#1

hi there !

i have set up Quicbox, and rclone, mount Encrypted amazon cloud drive and use unionFS.
everything work fine until I reboot.

i have put my rclone mount and unionFS in the rc.local
when i reboot, it seems rtorrent start befor my mounts and union are ready.

i have try to edit [email protected], ofound this :
[Unit]
Description=rTorrent
After=network.target
(…)

but dont know how or what to write instead… still a linux noob :confused:

so plz, can someone tell me how make rtorrent start after my user rc.local ? or how to start my user commands before rtorrent ?

Thx a lot !


#2

Edit your rtorrent service so that it loads after rc-local.service (rc.local has technically been depricated, and is actually called by this service)

After=network.target rc-local.service

Should work, but I make no guarantees :wink: Don’t forget to reload the systemctl daemon

sudo systemctl daemon-reload

#3

thx a lot !! and… feel stupid ^^
it was not rc.local but my user’s cron

si if someone else need the same things than me :

here is how i have do :slight_smile:
sudo nano /etc/systemd/system/rtorrent\@.service

then

[Unit]
Description=rTorrent
After=network.target multi-user.target