Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mike at jerris.com
Guest





PostPosted: Tue Apr 21, 2009 6:10 pm    Post subject: [Freeswitch-users] [CentOS] Modifying init script? Reply with quote

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:

Quote:

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
======================================


_______________________________________________
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
Back to top
codecomplete at free.fr
Guest





PostPosted: Wed Apr 22, 2009 4:47 am    Post subject: [Freeswitch-users] [CentOS] Modifying init script? Reply with quote

Michael Jerris wrote:
Quote:
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.html
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
Back to top
mike at jerris.com
Guest





PostPosted: Wed Apr 22, 2009 9:41 am    Post subject: [Freeswitch-users] [CentOS] Modifying init script? Reply with quote

On Apr 22, 2009, at 5:34 AM, Fred-145 wrote:

Quote:


Michael Jerris wrote:
Quote:
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

Quote:
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


_______________________________________________
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
Back to top
codecomplete at free.fr
Guest





PostPosted: Thu Apr 23, 2009 10:47 am    Post subject: [Freeswitch-users] [CentOS] Modifying init script? Reply with quote

Michael Jerris wrote:
Quote:
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.html
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
Back to top
michal.bielicki at voi...
Guest





PostPosted: Thu Apr 23, 2009 2:31 pm    Post subject: [Freeswitch-users] [CentOS] Modifying init script? Reply with quote

I think thats a centos bug. Seen that often as well.
Am 23.04.2009 um 17:35 schrieb Fred-145:
Quote:


Michael Jerris wrote:
Quote:
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.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (info@halokwadrat.de)
e. michal.bielicki@halokwadrat.de (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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services