Remy Blank wrote:
> Dale wrote:
>> Care to share that script? ;-) May try that myself.
>
> Sure, here it is:
>
> $ cat .kde4/shutdown/cleanup-kde-processes
> #!/bin/bash
>
> log() {
> logger -t "$(basename $0)" "$1"
> }
>
> is_running() {
> killall -0 -u $USER "$1"
> }
>
> kill_if_running() {
> sleep 15
> is_running startkde && return 0
> if is_running $1; then
> log "$1 still running, sending TERM"
> killall -s TERM $1
> sleep 5
> is_running startkde && return 0
> if is_running $1; then
> log "$1 still running, sending KILL"
> killall -s KILL $1
> fi
> fi
> }
>
> kill_if_running kded4 &
> kill_if_running nepomukserver &
>

Thanks much.  This will be better than killing them all one by one.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!

Reply via email to