#!/bin/sh
#
# $NetBSD: kdm.sh,v 1.1 2012/03/19 19:44:03 markd Exp $
#

# PROVIDE: kdm
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="kdm"
rcvar=$name
command="/usr/pkg/bin/${name}"
pidfile="/var/run/kdm.pid"
required_files="/usr/pkg/etc/kdm/kdmrc"
command_args="-config ${required_files}"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${kdm_flags} ${command_args}
fi
