packages/net/freeswitch/files/freeswitch.init
cshore c653f79180 net/freeswitch: Set stacksize for freeswitch using ulimit in init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21811 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-15 22:20:49 +00:00

25 lines
384 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=90
DEFAULT=/etc/default/freeswitch
OPTIONS=""
boot() {
# Do nothing on boot
exit 0
}
start() {
[ -f $DEFAULT ] && . $DEFAULT
mkdir -p $FS_DIR_DB
mkdir -p $FS_DIR_LOG
ulimit -s 240
$FS_DIR/usr/bin/freeswitch $OPTIONS -c &
}
stop() {
[ -f $DEFAULT ] && . $DEFAULT
$FS_DIR/usr/bin/freeswitch $OPTIONS -stop
}