net/freeswitch: Set stacksize for freeswitch using ulimit in init script
[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 ulimit -s 240
18 $FS_DIR/usr/bin/freeswitch $OPTIONS -c &
19 }
20
21 stop() {
22 [ -f $DEFAULT ] && . $DEFAULT
23 $FS_DIR/usr/bin/freeswitch $OPTIONS -stop
24 }