summaryrefslogblamecommitdiffstats
path: root/x11/gdm/files/gdm.in
blob: a28fdf6b92e75bedb785e0d55dffa55ba73dc3ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                                                             
                                                                              








                                                              
             


                                        








                                     
#!/bin/sh
# $FreeBSD: ports/x11/gdm/files/gdm.in,v 1.2 2006/10/14 08:35:24 marcus Exp $
#    $MCom: ports/x11/gdm/files/gdm.in,v 1.10 2006/10/19 01:23:27 marcus 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"