packages/net/freeswitch/files/freeswitch.init
cshore f23f758ccb packages: net/freeswitch: restore logging to syslog instead of file on /tmp/freeswitch at nico's request
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-16 00:45:05 +00:00

24 lines
369 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
$FS_DIR/usr/bin/freeswitch $OPTIONS -c &
}
stop() {
[ -f $DEFAULT ] && . $DEFAULT
$FS_DIR/usr/bin/freeswitch $OPTIONS -stop
}