[Freeswitch-users] [CentOS] Modifying init script?

Michael Jerris mike at jerris.com
Tue Apr 21 15:59:40 PDT 2009


Those files in tree go with the rpm build with goes correctly to those  
directories.

Mike

On Apr 21, 2009, at 4:06 AM, Fred-145 wrote:

>
> Hello
>
> I'm installing Freeswitch on a CentOS 5.3 test host. I noticed that  
> the
> freeswitch.init.redhat contains paths that don't match a stock CentOS
> install.
>
> All files are currently installed/owned by root: Should I go ahead,  
> create a
> "freeswitch" user/group, and chown everything under /usr/local/ 
> freeswitch/,
> or are there issues if some files aren't owned by root?
>
> Here's the original file, and mine:
>
> ===== ORIG /usr/src/freeswitch/build/freeswitch.init.redhat  
> =============
> PROG_NAME=freeswitch
> PID_FILE=${PID_FILE-/opt/freeswitch/log/freeswitch.pid}
> FS_USER=${FS_USER-freeswitch}
> FS_FILE=${FS_FILE-/opt/freeswitch/bin/freeswitch}
> FS_HOME=${FS_HOME-/opt/freeswitch}
> LOCK_FILE=/var/lock/subsys/freeswitch
> FREESWITCH_ARGS="-nc"
> RETVAL=0
> ===== My /etc/init.d/freeswitch =============
> PROG_NAME=freeswitch
> PID_FILE=${PID_FILE-/usr/local/freeswitch/log/freeswitch.pid}
> #All files installed/owned by root: Should I go ahead and create a
> freeswitch user anyway?
> FS_USER=${FS_USER-freeswitch}
> FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch}
> FS_HOME=${FS_HOME-/usr/local/freeswitch}
> LOCK_FILE=/var/lock/subsys/freeswitch
> FREESWITCH_ARGS="-nc"
> RETVAL=0
> ======================================
>




More information about the FreeSWITCH-users mailing list