summaryrefslogblamecommitdiffstats
path: root/x11/gdm/files/gdm.in
blob: 00bd414b00f131b31a30b8fa96a22031a0b331b9 (plain) (tree)
1
2
3
         

                                                                            





















                                                              
#!/bin/sh
# $FreeBSD$
#    $MCom: ports/x11/gdm/files/gdm.in,v 1.27 2008/03/11 03:00:27 mezz Exp $

# PROVIDE: gdm
# REQUIRE: LOGIN cleanvar moused
#
# 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}}

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"