summaryrefslogblamecommitdiffstats
path: root/x11/gdm/files/gdm.in
blob: 2312f3a9f31d8cb38873f191388f81883ec35727 (plain) (tree)























                                                                             
#!/bin/sh
# $FreeBSD: ports/x11/gdm/files/gdm.in,v 1.4 2007/03/19 05:13:50 marcus Exp $
#    $MCom: ports/x11/gdm/files/gdm.in,v 1.12 2007/02/16 18:14:26 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"