Commit Graph

182 Commits

Author SHA1 Message Date
Anthony Minessale e3ac7c50ac FS-5238 --resolve 2013-03-27 16:50:10 -05:00
Jeff Lenk dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Anthony Minessale 52eff9451c wrap fork so we can drop priority in child processes 2012-10-01 13:38:45 -05:00
Travis Cross 72baa97369 Condense the humanized FS version string
Old:
FreeSWITCH Version 1.3.0+git~20120916T192130Z~3b5aa066c7 (1.3.0; git at commit 3b5aa066c7 on Sun, 16 Sep 2012 19:21:30 Z)

New:
FreeSWITCH Version 1.3.0+git~20120916T192130Z~3b5aa066c7 (git 3b5aa06 2012-09-16 19:21:30Z)
2012-09-23 04:13:04 +00:00
Travis Cross a8019d803c Make version output more human-friendly
Our main version string is designed for release engineering purposes:
it matches file name conventions used for versioned tarballs and the
versions sort lexicographically while containing all pertinent
information.

With this commit we add in parentheses a more human-friendly rendering
of the version string: we spell out the meaning of each field and
render the datetime in RFC 822 notation.
2012-07-20 07:43:26 +00:00
Stefan Knoblich d141de28ea freeswitch: Add -base cmdline option.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 19:52:00 +02:00
Stefan Knoblich 435f28cefb FreeSWITCH: Fix copy&paste error in -storage cmdline option handling.
"htdocs_dir" -> "storage_dir"

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-12 10:03:14 +02:00
Jeff Lenk 91236c9ad3 fix build related issues on windows - trivial 2012-07-11 07:52:20 -05:00
Stefan Knoblich 07e9467d35 freeswitch: Add more cmdline options to control file locations.
Setting the base_dir variable didn't work so this will have to be
enough for now.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich aeb4b31063 freeswitch: Show user/group name in error message if change_user_group() fails.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich edfbbb127c freeswitch: Create struct rlimit rlp where it is needed (move down into block scope).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich 93a429fc11 freeswitch: Whitespace clean up in switch.c.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich b494d46f45 freeswitch: Clean up daemonize().
Whitespace and indentation clean up.

Use EXIT_SUCESS/_FAILURE.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:24 +02:00
Stefan Knoblich f9d0e249a1 freeswitch: Rework option handling in main() and other clean ups.
Use a chain of "else if" statements, drop known_opt completely.
Added bonus: We stop trying to parse option arguments as (possible) options.

Arguments of -u/-g and path options (-conf) now check whether their argument
starts with a dash ('-') and error out in case it does (= next option, not a valid argument).

Use PATH_MAX for everything that stores files / directories.

Use switch_bool_t and SWITCH_TRUE/_FALSE for boolean variables.

Use EXIT_SUCCESS/_FAILURE for exit() calls.

Get rid of excessive indenting (especially in the win32 parts of main()).

NOTE: Win32 parts untested.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich 659ea9f117 freeswitch: Move usage description out of main() and improve cmdline option handling.
Move empty cmdline option string check and "-help/-h/-?" handling to top of loop.

Emit a proper error message for unknown options. (Just displaying the
usage description, but not telling the user which option was wrong, is bad mojo).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Stefan Knoblich d6a395b642 freeswitch: Use switch_strlen_zero() to check for empty strings.
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-11 11:08:23 +02:00
Anthony Minessale 4654bda84a FS-4374 try this: it will set the stack size for the whole app to 240 if its too big or too small, if there are system limits, fs may have to be run as root and drop privs to be allowed to change this setting 2012-07-02 11:20:05 -05:00
Anthony Minessale c608ca35d8 don't print ASS 2012-06-13 11:29:14 -05:00
Jeff Lenk 021f48d02e FS-4169 --resolve compiler warning for solaris 2012-05-17 10:28:51 -05:00
Ken Rice c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Jeff Lenk e6963e34bb FS-4127 --resolve 2012-04-18 09:17:52 -05:00
Jeff Lenk 24288832b1 FS-2216 partial with renaming 2012-01-08 14:19:16 -06:00
Marc Olivier Chouinard e566057701 FS-2216 --resolve 2011-12-14 10:27:31 -05:00
Anthony Minessale c1dd008b1d change -hp to -rp, add -lp and -np, no priority flags means auto which will do -rp if you have > 1 cpu 2011-09-12 16:13:19 -05:00
Anthony Minessale 910f5364a4 add threaded-system-exec param and fsctl (set it to false to use fork) 2011-09-12 14:25:01 -05:00
Anthony Minessale 73279f01bf FS-3166 --resolve 2011-04-22 16:43:29 -05:00
Anthony Minessale 008f988990 FS-3208 --resolve 2011-04-01 12:30:24 -05:00
Anthony Minessale 5d7831348b improve some defaults to tune performance if you use -heavy_timer, try not using it 2011-03-22 13:27:37 -05:00
Anthony Minessale fe152626db stop suggesting -waste because its really the bad choice to make 2011-02-28 11:27:56 -06:00
Anthony Minessale 1b52a79569 stop suggesting -waste since its a bad choice 2011-02-28 11:25:42 -06:00
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Jeff Lenk b4562522ed windows - fix build 2010-10-29 13:51:02 -05:00
Anthony Minessale d40bb06400 part2 2010-10-29 13:00:14 -05:00
Anthony Minessale 23d5fc1900 add -ncwait for Unix based implememtations to make the backgrounder wait to make sure the process starts before detaching 2010-10-29 12:43:55 -05:00
Anthony Minessale 5aa13f13e7 revert broken patch FSCORE-652 2010-09-21 10:37:04 -05:00
Jeff Lenk 7df3e18c6a fix windows build 2010-08-26 13:55:13 -05:00
Anthony Minessale f26a697242 FSCORE-652 2010-08-26 12:34:24 -05:00
Jeff Lenk 3515c7a020 FSCORE-643 Windows: Add start parameter -monotonic-clock, replaces build flag WIN32_MONOTONIC 2010-07-28 20:44:45 -05:00
Anthony Minessale 95665f0096 JANITOR-4 2010-04-21 10:11:13 -05:00
Anthony Minessale 717308a3cf compromising on timing code, remove -vm and make it default, make new -heavy-timing for previous default, change tipping-point to work of count of active timers rather than sessions, this should statisfy the droves of 'I wish it worked like 1.0.4 people'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-01 19:25:27 +00:00
Anthony Minessale 886e1ddb4d run indent on the whole tree and update copyright dates in prep for 1.0.5
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Mathieu Rene 192288bbc8 Delay windows service startup so other command line options are processed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16558 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-02 22:53:36 +00:00
Brian West 7a0bc97b5c FSCORE-534
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16482 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-23 18:37:11 +00:00
Anthony Minessale da29b01195 few new command line opts -vm for conditonal timer, -nocal to skip timer calibration and -nort to turn off clock_realtime fam of functions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 21:09:51 +00:00
Michael Jerris 8912b80e13 (FSCORE-524)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16277 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 17:01:36 +00:00
Jeff Lenk 66c6760d27 create run dir (mostly for windows) if it does not exist yet
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16262 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-12 17:20:16 +00:00
Brian West 7c3e30ce73 big doh FSCORE-475
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15251 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-27 16:53:53 +00:00
Michael Jerris 7224f7b028 fix regression from -run addition and better handling of -stop whoops (FSCORE-474)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15247 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-27 14:01:13 +00:00
Michael Jerris 7fbdde93b6 fix regression from -run addition and better handling of -stop
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15234 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-26 21:46:21 +00:00
Anthony Minessale 3a77cb0ed0 fix arg parsing on restart to not accumulate args
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15164 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-15 15:25:06 +00:00