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 ====================================== Thank you. -- View this message in context: http://www.nabble.com/-CentOS--Modifying-init-script--tp23151057p23151057.ht... Sent from the Freeswitch-users mailing list archive at Nabble.com.
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 ======================================
Michael Jerris wrote:
Those files in tree go with the rpm build with goes correctly to those directories.
Thanks Mike, but I don't understand :-/ Do you mean that I should not bother compiling from SVN and download an RPM instead (I didn't see a source listed under http://wiki.freeswitch.org/wiki/Installation_Guide)? Or can I just run "chown -R freeswitch:freeswitch /usr/local/freeswitch" and expect things to work (what about /etc/init.d/freeswitch and /var/lock/subsys/freeswitch? Should they also be owned by freeswitch)? Thank you. -- View this message in context: http://www.nabble.com/-CentOS--Modifying-init-script--tp23151057p23172912.ht... Sent from the Freeswitch-users mailing list archive at Nabble.com.
On Apr 22, 2009, at 5:34 AM, Fred-145 wrote:
Michael Jerris wrote:
Those files in tree go with the rpm build with goes correctly to those directories.
Thanks Mike, but I don't understand :-/
Do you mean that I should not bother compiling from SVN and download an RPM instead (I didn't see a source listed under http://wiki.freeswitch.org/wiki/Installation_Guide)?
No
Or can I just run "chown -R freeswitch:freeswitch /usr/local/ freeswitch" and expect things to work (what about /etc/init.d/freeswitch and /var/lock/subsys/freeswitch? Should they also be owned by freeswitch)?
No. It means the reason those directories where like that in the file were because they are based on the locations the rpm puts the files. Mike
Michael Jerris wrote:
It means the reason those directories where like that in the file were because they are based on the locations the rpm puts the files.
Thanks again Mike. I went ahead, created a "freeswitch" user, chowned /usr/local/freeswitch/ recursively, ran /etc/init.d/freeswitch, and the server seems to work OK. One little detail, though, which might be CentOS-specific: Even after editing /etc/password, "ps" shows the user ID instead of the user name: ============ # cat /etc/passwd [...] freeswitch:x:500:500:Freeswitch:/home/freeswitch:/sbin/nologin ============ # /etc/init.d/freeswitch start Starting freeswitch: [ OK ] ============ # ps aux | grep frees 500 3733 24.2 1.3 29404 14360 ? Sl 12:26 0:00 /usr/local/freeswitch/bin/freeswitch -nc root 3762 0.0 0.0 3912 676 pts/3 S+ 12:26 0:00 grep frees ============ Does someone know why "ps" shows the ID instead of the name in column 1? Thank you. -- View this message in context: http://www.nabble.com/-CentOS--Modifying-init-script--tp23151057p23197416.ht... Sent from the Freeswitch-users mailing list archive at Nabble.com.
I think thats a centos bug. Seen that often as well. Am 23.04.2009 um 17:35 schrieb Fred-145:
Michael Jerris wrote:
It means the reason those directories where like that in the file were because they are based on the locations the rpm puts the files.
Thanks again Mike. I went ahead, created a "freeswitch" user, chowned /usr/local/freeswitch/ recursively, ran /etc/init.d/freeswitch, and the server seems to work OK.
One little detail, though, which might be CentOS-specific: Even after editing /etc/password, "ps" shows the user ID instead of the user name:
============ # cat /etc/passwd [...] freeswitch:x:500:500:Freeswitch:/home/freeswitch:/sbin/nologin ============ # /etc/init.d/freeswitch start Starting freeswitch: [ OK ] ============ # ps aux | grep frees 500 3733 24.2 1.3 29404 14360 ? Sl 12:26 0:00 /usr/local/freeswitch/bin/freeswitch -nc root 3762 0.0 0.0 3912 676 pts/3 S+ 12:26 0:00 grep frees ============
Does someone know why "ps" shows the ID instead of the name in column 1?
Thank you. -- View this message in context: http://www.nabble.com/-CentOS--Modifying-init-script--tp23151057p23197416.ht... Sent from the Freeswitch-users mailing list archive at Nabble.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
Michal Bielicki Leiter der Niederlassung HaloKwadrat Sp. z o.o. Niederlassung Kleinmachnow Eingetragen im Handelsregister beim Amtsgericht Potsdam, HRB21422P Ust.Id.: DE261885536 Geschaeftsfuehrer: Aleksander Wiercinski Meiereifeld 2b, 14532 Kleinmachnow t. +49 33203 263220 f. +49 33203 263229 sip. info@halokwadrat.de e. michal.bielicki@halokwadrat.de | w. www.halokwadrat.de Hauptgeschäftsstelle: Halo Kwadrat Sp. z o.o. ul. Polna 46/14 00-644 Warszawa, Polen EIngetragen im HRB Warszawa, KRS 0000153539
participants (3)
-
Fred-145
-
Michael Jerris
-
Michal Bielicki