2009-10-07 16:17:09 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
START=90
|
|
|
|
|
|
|
|
DEFAULT=/etc/default/freeswitch
|
|
|
|
OPTIONS=""
|
|
|
|
|
2010-04-13 10:23:46 +00:00
|
|
|
boot() {
|
|
|
|
# Do nothing on boot
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2009-10-07 16:17:09 +00:00
|
|
|
start() {
|
|
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
|
|
|
mkdir -p $FS_DIR_DB
|
2009-10-13 07:20:19 +00:00
|
|
|
mkdir -p $FS_DIR_LOG
|
2010-06-15 22:20:49 +00:00
|
|
|
ulimit -s 240
|
2010-04-16 00:45:05 +00:00
|
|
|
$FS_DIR/usr/bin/freeswitch $OPTIONS -c &
|
2009-10-07 16:17:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
[ -f $DEFAULT ] && . $DEFAULT
|
|
|
|
$FS_DIR/usr/bin/freeswitch $OPTIONS -stop
|
|
|
|
}
|