27 lines
492 B
Bash
27 lines
492 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: slim.sh,v 1.2 2009/11/22 23:16:00 shindenmorr Exp $
|
|
#
|
|
|
|
# PROVIDE: slim
|
|
# REQUIRE: DAEMON LOGIN wscons
|
|
# KEYWORD: shutdown
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
. /etc/rc.subr
|
|
fi
|
|
|
|
name="slim"
|
|
rcvar=${name}
|
|
command="@PREFIX@/sbin/${name}"
|
|
command_args="-d"
|
|
pidfile="/var/run/${name}.lock"
|
|
required_files="@PKG_SYSCONFDIR@/slim.conf"
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|
|
else
|
|
echo -n " ${name}"
|
|
${command} ${slim_flags} ${command_args}
|
|
fi
|