From c9969f1e6f1b363a9d32c9baf32dc9c012fd3a27 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 26 Jan 2014 12:40:05 +0100 Subject: add startup script --- package/squeezelite/files/squeezelite.init | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/squeezelite/files/squeezelite.init (limited to 'package/squeezelite/files/squeezelite.init') diff --git a/package/squeezelite/files/squeezelite.init b/package/squeezelite/files/squeezelite.init new file mode 100644 index 000000000..933b81ab5 --- /dev/null +++ b/package/squeezelite/files/squeezelite.init @@ -0,0 +1,26 @@ +#!/bin/sh +#PKG squeezelite +#INIT 60 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${squeezelite:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/bin/squeezelite $squeezelite_flags + ;; +stop) + kill $(pgrep -f /usr/bin/squeezelite) + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? -- cgit v1.2.3