From 458498899b6b0aaf860c80674f7fd01da65cb42f Mon Sep 17 00:00:00 2001 From: Daniel Dickinson Date: Sun, 27 Jun 2010 13:36:27 +0000 Subject: [PATCH 1/1] net/freeswitch: Change -upstream-defaults and -minimal to use mod_syslog instead of mod_console for logging, and start in daemon mode not foreground SVN-Revision: 21965 --- net/freeswitch/Makefile | 6 ++++-- net/freeswitch/files/freeswitch.init | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile index e3da8a00f0..a2123b5929 100644 --- a/net/freeswitch/Makefile +++ b/net/freeswitch/Makefile @@ -164,7 +164,7 @@ $(call Package/freeswitch/Default) DEPENDS:= freeswitch \ +freeswitch-mod-commands \ +freeswitch-mod-conference \ - +freeswitch-mod-console \ + +freeswitch-mod-syslog \ +freeswitch-mod-curl \ +freeswitch-mod-dialplan-xml \ +freeswitch-mod-dptools \ @@ -193,7 +193,7 @@ $(call Package/freeswitch/Default) TITLE:=FreeSWITCH minimal config DEPENDS:= freeswitch \ +freeswitch-mod-commands \ - +freeswitch-mod-console \ + +freeswitch-mod-syslog \ +freeswitch-mod-dialplan-xml \ +freeswitch-mod-dptools \ +freeswitch-mod-event-socket \ @@ -349,6 +349,8 @@ define Build/Compile DESTDIR="$(PKG_INSTALL_DIR)" \ LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \ all $(MAKE_INSTALL_TARGETS) + $(SED) 's|^\([:blank:]*\)\(.*\)"mod_console"\(.*\)$$$$|\1|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml + $(SED) 's|^\([:blank:]*\)\(.*\)$$$$|\1\2"mod_syslog"\3\4 -->|' $(PKG_INSTALL_DIR)/etc/freeswitch/autoload_configs/modules.conf.xml endef define Build/InstallDev diff --git a/net/freeswitch/files/freeswitch.init b/net/freeswitch/files/freeswitch.init index a155724dac..8637556aa5 100644 --- a/net/freeswitch/files/freeswitch.init +++ b/net/freeswitch/files/freeswitch.init @@ -15,7 +15,7 @@ start() { mkdir -p $FS_DIR_DB mkdir -p $FS_DIR_LOG ulimit -s 240 - $FS_DIR/usr/bin/freeswitch $OPTIONS -c & + $FS_DIR/usr/bin/freeswitch $OPTIONS -nc } stop() { @@ -35,3 +35,4 @@ restart() { sleep 10 start } + -- 2.30.2