Freeswitch on system startup on Fedora 16
Hi, I've installed FreeSWITCH on Fedora 16. I want FreeSWITCH to be launched at system startup. I've put a bash script from http://wiki.freeswitch.org/wiki/Freeswitch_init#Fedora into /etc/init.d directory with corrected paths, and run #chckconfig freeswitch on FreeSWITCH doesnt start at system startup. Running #service freeswitch start Starting freeswitch (via systemctl): [ OK ] ... but FreeSWITCH doesnt actually start. Running #systemctl enable freeswitch.service freeswitch.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig freeswitch on Warning: unit files do not carry install information. No operation executed. Running # chkconfig --list freeswitch Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. freeswitch 0:off 1:off 2:on 3:on 4:on 5:on 6:off Running #/usr/local/freeswitch/bin/freeswitch works fine. Please help. Thanks. The init script is below: cat /etc/init.d/freeswitch #! /bin/sh # # freeswitch: Starts the freeswitch Daemon # # chkconfig: 345 96 02 # processname: freeswitch # description: Freeswitch fedora init script \ # config: # Author: gled # Source function library. . /etc/init.d/functions . /etc/sysconfig/network PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/freeswitch/bin DESC="FreeSwitch Voice Switching System" NAME=freeswitch DAEMON=/usr/local/freeswitch/bin/$NAME DAEMON_ARGS="-nc" PIDFILE=/var/run/freeswitch/$NAME.pid ## SECURITY NOTE: To run as non-root, create a new user for FreeSWITCH and set these variables (FS_GROUP is optional). ## FS_USER=freeswitch #FS_GROUP=freeswitch do_setlimits() { ulimit -c unlimited ulimit -d unlimited ulimit -f unlimited ulimit -i unlimited ulimit -n 999999 ulimit -q unlimited ulimit -u unlimited ulimit -v unlimited ulimit -x unlimited ulimit -s 244 ulimit -l unlimited return 0 } base=${0##*/} do_start() { if [ -n "${FS_USER}" ]; then DAEMON_ARGS="${DAEMON_ARGS} -u ${FS_USER}" fi if [ -n "${FS_GROUP}" ]; then DAEMON_ARGS="${DAEMON_ARGS} -g ${FS_GROUP}" fi do_setlimits $DAEMON $DAEMON_ARGS RETVAL=$? if [ $RETVAL = 0 ]; then success $"$base startup" else failure $"$base startup" fi echo return $RETVAL } do_stop() { $DAEMON -stop RETVAL=$? [ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown" rm -f $LOCKFILE echo return $RETVAL } # See how we were called. case "$1" in start) do_start ;; stop) do_stop ;; restart) do_stop echo "Waiting for daemon to exit..." sleep 5 do_start ;; *) echo $"Usage: $0 {start|stop}" exit 2 ;; esac exit $RETVAL
On 11-12-11 11:54, T T wrote:
Hi,
I've installed FreeSWITCH on Fedora 16. I want FreeSWITCH to be launched at system startup.
I've put a bash script from http://wiki.freeswitch.org/wiki/Freeswitch_init#Fedora
into /etc/init.d directory with corrected paths, and run #chckconfig freeswitch on
FreeSWITCH doesnt start at system startup.
If you have SELinux enabled, did you make sure that the init script has the proper SELinux context? Regards, Patrick
Hi, SELinux isn't the cause. Setting it to 'permissive' doesn't make it work after reboot. T. On Mon, Dec 12, 2011 at 3:24 PM, Patrick Lists <freeswitch-list@puzzled.xs4all.nl> wrote:
On 11-12-11 11:54, T T wrote:
Hi,
I've installed FreeSWITCH on Fedora 16. I want FreeSWITCH to be launched at system startup.
I've put a bash script from http://wiki.freeswitch.org/wiki/Freeswitch_init#Fedora
into /etc/init.d directory with corrected paths, and run #chckconfig freeswitch on
FreeSWITCH doesnt start at system startup.
If you have SELinux enabled, did you make sure that the init script has the proper SELinux context?
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Have you tried to execute FreeSWITCH as normal under Fedora 16? On Mon, Dec 12, 2011 at 11:49 AM, T T <quiet.ordinary.man@gmail.com> wrote:
Hi,
SELinux isn't the cause. Setting it to 'permissive' doesn't make it work after reboot.
T.
On Mon, Dec 12, 2011 at 3:24 PM, Patrick Lists <freeswitch-list@puzzled.xs4all.nl> wrote:
On 11-12-11 11:54, T T wrote:
Hi,
I've installed FreeSWITCH on Fedora 16. I want FreeSWITCH to be launched at system startup.
I've put a bash script from http://wiki.freeswitch.org/wiki/Freeswitch_init#Fedora
into /etc/init.d directory with corrected paths, and run #chckconfig freeswitch on
FreeSWITCH doesnt start at system startup.
If you have SELinux enabled, did you make sure that the init script has the proper SELinux context?
Regards, Patrick
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Try to do this: 1) First of all check this file: nano /etc/init.d/freeswitch 2) if the file does not apears, do this from the freeswitch source folder ( /usr/src/freeswitch/): cd build cp freeswitch.init.redhat /etc/init.d/freeswitch 3) if the file apears check if these sentences are written like these: PID_FILE=${PID_FILE-/opt/freeswitch/run/freeswitch.pid} FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch} FS_HOME=${FS_HOME-/opt/freeswitch} FREESWITCH_ARGS="-nc" 4) Change it to these: PID_FILE=${PID_FILE-/usr/local/freeswitch/run/freeswitch.pid} FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch} FS_HOME=${FS_HOME-/usr/local/freeswitch} FREESWITCH_ARGS="-nc" 5) save and then cd /etc/init.d/ chmod +x freeswitch chkconfig --add freeswitch adduser freeswitch 6) normally works Josue Diaz Cruz Departamento Tecnico y Soporte jdiaz@coinfru.com T 650 694 338 Cl Balsicas 3 Alquerias | 30580 | Murcia www.coinfru.com -----Mensaje original----- De: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] En nombre de curriegrad2004 Enviado el: Tuesday, December 13, 2011 16:29 Para: FreeSWITCH Users Help Asunto: Re: [Freeswitch-users] Freeswitch on system startup on Fedora 16 Have you tried to execute FreeSWITCH as normal under Fedora 16? On Mon, Dec 12, 2011 at 11:49 AM, T T <quiet.ordinary.man@gmail.com> wrote:
Hi,
SELinux isn't the cause. Setting it to 'permissive' doesn't make it work after reboot.
T.
On Mon, Dec 12, 2011 at 3:24 PM, Patrick Lists <freeswitch-list@puzzled.xs4all.nl> wrote:
On 11-12-11 11:54, T T wrote:
Hi,
I've installed FreeSWITCH on Fedora 16. I want FreeSWITCH to be launched at system startup.
I've put a bash script from http://wiki.freeswitch.org/wiki/Freeswitch_init#Fedora
into /etc/init.d directory with corrected paths, and run #chckconfig freeswitch on
FreeSWITCH doesnt start at system startup.
If you have SELinux enabled, did you make sure that the init script has the proper SELinux context?
Regards, Patrick
_____________________________________________________________________ ____ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-us ers http://www.freeswitch.org
______________________________________________________________________ ___ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-use rs http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
curriegrad2004
-
Josue Diaz Cruz
-
Patrick Lists
-
T T