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:
Jesper Schmitz Mouridsen 2020-06-28 14:58:43 +00:00
parent 333b0451a9
commit a9456f6793
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540725
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}