Does your script fork at some point (and might exit before the rsync job is completed)? ~~Because then you need to use Type=forking
instead of simple
or oneshot
, otherwise systemd will start trying to clean up child processes when the script exits.~~
Edit: Actually considering the time span involved Type=forking
will not solve your issue because it will timeout, if this is the problem you need to change your script to not do that.
TimeoutStopSec
applies to theExecStop
command,TimeoutStartSec
would be the culprit here. I'm not sure why there would be a default timeout of specifically 1:39 minutes though.