summaryrefslogtreecommitdiff
path: root/audio/moss/files/moss.sh
diff options
context:
space:
mode:
Diffstat (limited to 'audio/moss/files/moss.sh')
-rw-r--r--audio/moss/files/moss.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/moss/files/moss.sh b/audio/moss/files/moss.sh
new file mode 100644
index 00000000000..5198387b7a7
--- /dev/null
+++ b/audio/moss/files/moss.sh
@@ -0,0 +1,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