restart process if killed improperly
Posted 06-27-2013 at 10:00 AM by sumeet inani
Hi , i am using qbittorrent in fedora 17
It frequently happens that
So I ran this script which works well
When I ran 'kill -9 PID-of-qbittorrent'
Then the process respawned which is desired.
But when I ran 'kill PID-of-qbittorrent' which is polite way to close application (read from http://www.gnu.org/software/libc/man...n-Signals.html)
I have seen this process get aborted by signals SIGSEGV(6) , SIGABRT(11).
This is fun.
It frequently happens that
Code:
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org and provide the following backtrace: qBittorrent version: v3.0.9 stack trace: [4]+ Segmentation fault (core dumped) qbittorrent (wd: ~/sumeet)
Code:
until qbittorrent; do echo "Server 'qbittorrent' crashed with exit code $?. Respawning.." >&2 echo kill time date is $(date) sleep 10 done
Then the process respawned which is desired.
But when I ran 'kill PID-of-qbittorrent' which is polite way to close application (read from http://www.gnu.org/software/libc/man...n-Signals.html)
I have seen this process get aborted by signals SIGSEGV(6) , SIGABRT(11).
This is fun.
Total Comments 0