I have recently migrated to Linux (Arch with KDE). I have created a couple of cronjobs for rclone 'copy'.
Most of the time, I might have to reboot or shut down the system and during these times, the rclone service takes a long time to stop. The following line(s) show up during shutdown or reboot:
"...waiting for rclone(pid).."
What I want is that the rclone service should stop as soon as the system sends a shutdown or reboot signal or not take too much time (current case - it takes more than 2 minutes, which is not normal).
Can I have guidance on the issue? Should I add some entries to the cron .sh files or the crontab -e list?
Any help is appreciated.
Run the command 'rclone version' and share the full output of the command.
os/version: arch "rolling" (64 bit)
os/kernel: 6.3.5-zen2-1-zen (x86_64)
Which cloud storage system are you using? (eg Google Drive)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
This seems innovative. Considering that I am new to Linux, can you provide help on how to move the rclone jobs from crontab to systemd and, at the same time, conserve the crontab functionality (to run every two hours/every day/week or run during boot and so on).
Other thing is that if running your rclone job using systemd does not delay shutdown/reboot there might be not need at all to send termination signal on Stop... If things work without maybe it is enough.