summaryrefslogtreecommitdiffstats
path: root/x11/gdm/files/gdm.in
blob: fd930a799ce1d832e894543c7532856e1513acc2 (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
#!/bin/sh
# $FreeBSD$
#    $MCom: ports/x11/gdm/files/gdm.in,v 1.7 2006/05/04 05:49:20 marcus Exp $

# PROVIDE: gdm
# REQUIRE: LOGIN cleanvar moused
#
# Add the following to /etc/rc.conf to start GDM at boot time:
#
# gdm_enable="YES"
#

gdm_enable=${gdm_enable-"NO"}

. %%RC_SUBR%%

name=gdm
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
procname="%%PREFIX%%/sbin/gdm-binary"

load_rc_config ${name}
run_rc_command "$1"