Gentoo Archives: gentoo-user

From: Remy Blank <remy.blank@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: /home doesn't umount on shutdown
Date: Tue, 15 Jan 2013 23:13:29
Message-Id: kd4npl$na5$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: /home doesn't umount on shutdown by Dale
1 Dale wrote:
2 > Care to share that script? ;-) May try that myself.
3
4 Sure, here it is:
5
6 $ cat .kde4/shutdown/cleanup-kde-processes
7 #!/bin/bash
8
9 log() {
10 logger -t "$(basename $0)" "$1"
11 }
12
13 is_running() {
14 killall -0 -u $USER "$1"
15 }
16
17 kill_if_running() {
18 sleep 15
19 is_running startkde && return 0
20 if is_running $1; then
21 log "$1 still running, sending TERM"
22 killall -s TERM $1
23 sleep 5
24 is_running startkde && return 0
25 if is_running $1; then
26 log "$1 still running, sending KILL"
27 killall -s KILL $1
28 fi
29 fi
30 }
31
32 kill_if_running kded4 &
33 kill_if_running nepomukserver &

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: /home doesn't umount on shutdown Dale <rdalek1967@×××××.com>