summaryrefslogtreecommitdiff
path: root/audio/icecast1/files/icecast.sh
diff options
context:
space:
mode:
Diffstat (limited to 'audio/icecast1/files/icecast.sh')
-rw-r--r--audio/icecast1/files/icecast.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/audio/icecast1/files/icecast.sh b/audio/icecast1/files/icecast.sh
new file mode 100644
index 00000000000..bcc80dbeb9e
--- /dev/null
+++ b/audio/icecast1/files/icecast.sh
@@ -0,0 +1,29 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: icecast.sh,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
+#
+# PROVIDE: icecast
+# REQUIRE: DAEMON LOGIN network
+
+
+name="icecast"
+command="@PREFIX@/bin/${name}"
+mainconfigfile="@PKG_SYSCONFDIR@/${name}.conf"
+icecast_flags="-c ${mainconfigfile} -d @PKG_SYSCONFDIR@ -b"
+sig_stop="KILL"
+
+
+. /etc/rc.subr
+
+
+pidfile="/var/run/${name}.pid"
+required_files="${mainconfigfile}"
+
+
+load_rc_config $name
+run_rc_command "$1"
+
+
+if [ "$1" != "stop" ]; then
+ echo $(check_process $command) > $pidfile
+fi