2004-01-15 11:15:14 +01:00
|
|
|
#!@RCD_SCRIPTS_SHELL@
|
|
|
|
#
|
2004-05-31 14:21:06 +02:00
|
|
|
# $NetBSD: kdm.sh,v 1.3 2004/05/31 12:21:06 markd Exp $
|
2004-01-15 11:15:14 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: kdm
|
|
|
|
# REQUIRE: DAEMON LOGIN wscons
|
|
|
|
# KEYWORD: shutdown
|
|
|
|
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
. /etc/rc.subr
|
|
|
|
fi
|
|
|
|
|
|
|
|
name="kdm"
|
|
|
|
rcvar=$name
|
|
|
|
command="@PREFIX@/bin/${name}"
|
2004-05-01 13:14:41 +02:00
|
|
|
pidfile="/var/run/kdm.pid"
|
2004-05-31 14:21:06 +02:00
|
|
|
required_files="@PKG_SYSCONFDIR@/kdm/kdmrc"
|
|
|
|
command_args="-config ${required_files}"
|
2004-01-15 11:15:14 +01:00
|
|
|
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|
|
|
|
else
|
|
|
|
echo -n " ${name}"
|
|
|
|
${command} ${kdm_flags} ${command_args}
|
|
|
|
fi
|