blob: e8c3acc38a873827f8950a5b03d728131516a867 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# $FreeBSD$
# $MCom: ports/x11/gdm/files/gdm.in,v 1.22 2008/02/03 00:07:45 marcus Exp $
# PROVIDE: gdm
# REQUIRE: LOGIN cleanvar moused syscons dbus
#
# Add the following to /etc/rc.conf to start GDM at boot time:
#
# gdm_enable="YES"
#
. %%RC_SUBR%%
. %%GNOME_SUBR%%
gdm_enable=${gdm_enable-${gnome_enable}}
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
name=gdm
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
procname="%%PREFIX%%/sbin/gdm-binary"
start_precmd="gdm_precmd"
gdm_precmd()
{
iter=0
while ! %%LOCALBASE%%/bin/vty-checker ; do
if [ ${iter} -eq 60 ]; then
break
fi
sleep 1
iter=$(expr ${iter} + 1)
done
}
load_rc_config ${name}
run_rc_command "$1"
|