packages/net/freeswitch/files/freeswitch.init
nico d908be5a60 [packages] add preliminary freeswitch v1.0.4 package (closes: #4891)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-07 16:17:09 +00:00

19 lines
325 B
Bash

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