It doesn't work, unfortunately.You can wait for start and death of process by e.g.:But I do not know, where is the problem.Code:
# Wait for startinguntil pgrep "qbittorrent-nox" ; do sleep 1done# Wait for initialization after start etc.sleep 5# Fire to living processpkill -SIGKILL "qbittorrent-nox"# Wait for sure deathwhile pgrep "qbittorrent-nox" ; do sleep 1done
How do you know, that your cron-job does not work?
[Or how is it (qbittorrent-nox) started after reboot?]
If use command
in terminal, it works.pkill -SIGKILL "qbittorrent-nox"
I placed the script in /etc/init.d and made it executable.
qbt-nox is running as a system service (https://userdocs.github.io/qbittorrent- ... /#/systemd)
I don't know what is happening. Isn't there a way to see what is causing this problem?
Statistics: Posted by alxnt — 2024-02-11 11:57