I'm running Ubuntu 16.04 on an old HP Laptop
I've installed some software on it to create a small homemade plex server. I've installed sonarr, radarr, deluge, jackett, etc etc and they all automatically launch at startup!
A couple of days ago I decided to install rclone too and I've created (thanks to a GitHub project) a couple of folders that have to be mounted at each startup by launching a script (I launch it via terminal writing
sudo ~/bin/check.mount). Sonarr and Radarr are set up to download stuff via deluge to a temp folder and then export it to one of these two mounted folders.
The problem is, by the time I manually launch the script Sonarr/Radarr are already up and running and can't find their root folders, so they give me an error.
What I'd like to do is create a mountgdrive.service (service, or whatever is necessary) to automatically launch the check.mount script and, if that's not enough, insert a delay in sonarr.service and radarr.service! Is that possible?
I wrote this with
sudo nano /etc/systemd/system/mountgdrive.service
[Unit] Description=MountSmokeScreen After=network.target [Service] Type=oneshot ExecStart=/home/samsepioldoloresh4ze/bin/check.mount TimeoutStopSec=20 KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target
and added to sonarr.service and radarr.service
mountgdrive.service in the
After= bit, like this
[Unit] Description=Sonarr After=syslog.target network.target mountgdrive.service [Service] User=samsepioldoresh4ze etcetc ....
But it's not working! Sonarr and Radarr start normally, but the drives are not mounted! What am I doing wrong?
Also, rtcwake doesn't work on my laptop - I think it's a kernel issue?! Is there a way to fix that?