source: freewrt/package/mini_httpd/files/mini_httpd.init@ 475ad56

freewrt_1_0 freewrt_2_0
Last change on this file since 475ad56 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 360 bytes
Line 
1#!/bin/sh
2
3BIN=mini_httpd
4DEFAULT=/etc/default/$BIN
5RUN_D=/var/run
6PID_F=$RUN_D/$BIN.pid
7[ -f $DEFAULT ] && . $DEFAULT
8
9case $1 in
10 start)
11 [ -d $RUN_D ] || mkdir -p $RUN_D
12 $BIN $OPTIONS 2>/dev/null
13 ;;
14 stop)
15 [ -f $PID_F ] && kill $(cat $PID_F)
16 ;;
17 restart)
18 $0 stop
19 $0 start
20 ;;
21 *)
22 echo "usage: $0 (start|stop|restart)"
23 exit 1
24esac
25
26exit $?
Note: See TracBrowser for help on using the repository browser.