diff options
Diffstat (limited to 'x11/gdm/files/gdm.in')
-rw-r--r-- | x11/gdm/files/gdm.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/gdm/files/gdm.in b/x11/gdm/files/gdm.in new file mode 100644 index 000000000..bdf0a1b3f --- /dev/null +++ b/x11/gdm/files/gdm.in @@ -0,0 +1,25 @@ +#!/bin/sh +# $FreeBSD: ports/x11/gdm/files/gdm.in,v 1.6 2007/12/12 04:52:30 mezz Exp $ +# $MCom: ports-stable/x11/gdm/files/gdm.in,v 1.1 2007/12/02 01:41:21 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" |