#!/bin/sh

# PROVIDE: slim
# REQUIRE: LOGIN

# $MidnightBSD: mports/x11/slim/files/slim.sh.in,v 1.4 2007/07/30 06:24:50 laffer1 Exp $
#
# Add the following lines to /etc/rc.conf to enable slim:
# slim_enable (bool):      Set to "NO" by default.
#                          Set it to "YES" to enable slim
#
# Alternatively, edit /etc/ttys and change the line below
#   ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
# to this:
#   ttyv8   "/usr/local/bin/slim"   xterm   on secure

. /etc/rc.subr

name="slim"
rcvar=`set_rcvar`

load_rc_config $name

: ${slim_enable="NO"}

command=/usr/local/bin/slim
command_args="-d"
pidfile=/var/run/slim.pid

run_rc_command "$1"
