You can wait for start and death of process by e.g.:
But I do not know, where is the problem.
How do you know, that your cron-job does not work?
[Or how is it (qbittorrent-nox) started after reboot?]
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?]
Statistics: Posted by ruwolf — 2024-02-09 01:57 — Replies 1 — Views 122