Make the rc script a little bit less horrible.

This commit is contained in:
ajacoutot 2013-04-03 15:45:47 +00:00
parent 396c3d5177
commit 63a2c0921b
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.151 2013/04/02 14:08:43 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.152 2013/04/03 15:45:47 ajacoutot Exp $
SHARED_ONLY= Yes
@ -6,7 +6,7 @@ COMMENT= GNOME display manager
GNOME_PROJECT= gdm
GNOME_VERSION= 3.8.0
REVISION= 2
REVISION= 3
HOMEPAGE= http://projects.gnome.org/gdm/

View File

@ -1,22 +1,21 @@
#!/bin/sh
#
# $OpenBSD: gdm.rc,v 1.18 2013/03/30 09:52:17 ajacoutot Exp $
# $OpenBSD: gdm.rc,v 1.19 2013/04/03 15:45:47 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/gdm"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
rc_stop=NO
rc_pre() {
install -d -g _gdm -m 0711 /var/run/gdm
install -d -o _gdm -g _gdm /var/run/gdm/greeter
sleep 5
}
rc_post() {
pkill -f "^gdm-session-worker"
rc_start() {
(sleep 5; ${rcexec} "${daemon} ${daemon_flags}")&
}
rc_cmd $1