78f9cb915c868b1a2e59772efd0288fb21602d2d
[openwrt/svn-archive/archive.git] / net / freeswitch / files / freeswitch.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3 START=90
4
5 DEFAULT=/etc/default/freeswitch
6 OPTIONS=""
7
8 boot() {
9 # Do nothing on boot
10 exit 0
11 }
12
13 start() {
14 [ -f $DEFAULT ] && . $DEFAULT
15 mkdir -p $FS_DIR_DB
16 mkdir -p $FS_DIR_LOG
17 $FS_DIR/usr/bin/freeswitch $OPTIONS -c &
18 }
19
20 stop() {
21 [ -f $DEFAULT ] && . $DEFAULT
22 $FS_DIR/usr/bin/freeswitch $OPTIONS -stop
23 }