summaryrefslogtreecommitdiff
path: root/openwrt/package/siproxd/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-05-14 20:32:03 +0000
committerNicolas Thill <nico@openwrt.org>2005-05-14 20:32:03 +0000
commite7ab00396c372f0398f09b3c33b56429438cc0ac (patch)
tree586fcdc3b5931179810a976e29bbeaafbe1cfa78 /openwrt/package/siproxd/files
parent31f91ef55efae901e919bed291d779b9ff31a4ca (diff)
downloadmtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.zip
mtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.tar.gz
mtk-20170518-e7ab00396c372f0398f09b3c33b56429438cc0ac.tar.bz2
Add siproxd package
SVN-Revision: 894
Diffstat (limited to 'openwrt/package/siproxd/files')
-rw-r--r--openwrt/package/siproxd/files/siproxd.init21
1 files changed, 21 insertions, 0 deletions
diff --git a/openwrt/package/siproxd/files/siproxd.init b/openwrt/package/siproxd/files/siproxd.init
new file mode 100644
index 0000000..f8739d4
--- /dev/null
+++ b/openwrt/package/siproxd/files/siproxd.init
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+BIN=siproxd
+DEFAULT=/etc/default/$BIN
+RUN_D=/var/run
+PID_F=$RUN_D/$BIN.pid
+[ -f $DEFAULT ] && . $DEFAULT
+
+case $1 in
+ start)
+ mkdir -p $RUN_D
+ $BIN $OPTIONS
+ ;;
+ stop)
+ [ -f $PID_F ] && kill $(cat $PID_F)
+ ;;
+ *)
+ echo "usage: $0 (start|stop)"
+ exit 1
+esac
+exit $?