Hi! Same trick done by Antoine for gdm.
Slim users, please test it. Ciao, David Index: Makefile =================================================================== RCS file: /cvs/ports/x11/slim/Makefile,v retrieving revision 1.24 diff -u -p -u -p -r1.24 Makefile --- Makefile 25 Sep 2013 07:12:54 -0000 1.24 +++ Makefile 29 Oct 2013 11:38:04 -0000 @@ -3,7 +3,7 @@ COMMENT= simple login manager DISTNAME= slim-1.3.5 -REVISION= 0 +REVISION= 1 CATEGORIES= x11 MAINTAINER = Landry Breuil <[email protected]> Index: pkg/slim.rc =================================================================== RCS file: /cvs/ports/x11/slim/pkg/slim.rc,v retrieving revision 1.3 diff -u -p -u -p -r1.3 slim.rc --- pkg/slim.rc 17 Dec 2011 22:01:14 -0000 1.3 +++ pkg/slim.rc 29 Oct 2013 11:38:04 -0000 @@ -9,7 +9,14 @@ daemon="${TRUEPREFIX}/bin/slim -d" rc_reload=NO rc_start() { - (sleep 5; ${rcexec} "${daemon} ${daemon_flags}")& + ( i=0 + while [ $i -le 10 ]; do + pgrep -qf "^/usr/libexec/getty " && break + sleep 1 + i=`expr $i + 1` + done + [[ $i -gt 10 ]] && return 1 + ${rcexec} "${daemon} ${daemon_flags}" ) & } rc_cmd $1
