blob: 2a911aaed48b287f802706765abebd3ac1619fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
#
# $NetBSD: slim.sh,v 1.2 2020/01/10 19:13:33 maya 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="@PREFIX@/bin/${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
|