mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
x11/slim: Correct getting xpid
Makes slim service stoppable again PR: 247098 Submitted by: Samy Mahmoudi <samy.mahmoudi@gmail.com>
This commit is contained in:
parent
333b0451a9
commit
a9456f6793
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540725
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= slim
|
||||
PORTVERSION= 1.3.6
|
||||
PORTREVISION= 20
|
||||
PORTREVISION= 21
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
|
||||
SF/slim.berlios
|
||||
|
@ -58,7 +58,7 @@ slim_prestop()
|
||||
|
||||
find_pidfile
|
||||
|
||||
xpid=`ps -axww | grep '/bin/[X] .* -auth /var/run/slim.auth' | grep -v grep | awk '{print $1};'`
|
||||
xpid=`pgrep -f 'Xorg .* -auth /var/run/slim.auth'`
|
||||
[ -n "$xpid" ] && kill $xpid
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user