blob: 5198387b7a725d2dae5dc426afd2c75b4143b11d (
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
28
|
#!/bin/sh
#
# $NetBSD: moss.sh,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
#
# PROVIDE: moss
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="moss"
rcvar=$name
command="@PREFIX@/bin/${name}"
command_interpreter="@INTERPRETER@"
pidfile="/var/run/moss.pid"
required_files="@PREFIX@/etc/moss.conf"
command_args="-c ${required_files}"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${command_args}
fi
|