#!/bin/sh
#
# $NetBSD: slim.sh,v 1.3 2025/05/29 14:35:59 khorben Exp $
#

# PROVIDE: slim
# REQUIRE: DAEMON LOGIN wscons dbus
# KEYWORD: shutdown

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

name="slim"
rcvar=${name}
command="/usr/pkg/bin/${name}"
command_args="-d"
pidfile="/var/run/${name}.pid"
required_files="/usr/pkg/etc/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
