source: freewrt/package/osiris/files/osirisd.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: 323 bytes
Line 
1#!/bin/sh
2
3BIN=osirisd
4DEFAULT=/etc/default/$BIN
5LIB_D=/var/lib/osiris
6RUN_D=/var/run
7PID_F=$RUN_D/$BIN.pid
8[ -f $DEFAULT ] && . $DEFAULT
9
10case $1 in
11 start)
12 mkdir -p $LIB_D
13 mkdir -p $RUN_D
14 $BIN $OPTIONS
15 ;;
16 stop)
17 [ -f $PID_F ] && kill $(cat $PID_F)
18 ;;
19 *)
20 echo "usage: $0 (start|stop)"
21 exit 1
22esac
23exit $?
Note: See TracBrowser for help on using the repository browser.