Module: kamailio Branch: master Commit: 9834ed6ea815bfdb96e9889024c54a9b4b7b3b62 URL: https://github.com/kamailio/kamailio/commit/9834ed6ea815bfdb96e9889024c54a9b...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-10-15T18:23:57+02:00
core: new command line option '-Y dir'
- set the runtime directory (used to create fifo, ctl socket, etc...)
---
Modified: main.c
---
Diff: https://github.com/kamailio/kamailio/commit/9834ed6ea815bfdb96e9889024c54a9b... Patch: https://github.com/kamailio/kamailio/commit/9834ed6ea815bfdb96e9889024c54a9b...
---
diff --git a/main.c b/main.c index 25d283c..cc976e0 100644 --- a/main.c +++ b/main.c @@ -188,8 +188,9 @@ Options:\n\ " -S disable sctp\n\ -Q Number of sctp child processes (default: equal to `-n')\n" #endif /* USE_SCTP */ -" -V Version number\n\ +" -v (-V) Version number\n\ -h This help message\n\ + -I Print more internal compile flags and options\n\ -b nr Maximum receive buffer size which will not be exceeded by\n\ auto-probing procedure even if OS allows\n\ -m nr Size of shared memory allocated in Megabytes\n\ @@ -200,6 +201,7 @@ Options:\n\ -g gid Change gid \n\ -P file Create a pid file\n\ -G file Create a pgid file\n\ + -Y dir Runtime dir\n\ -O nr Script optimization level (debugging option)\n\ -a mode Auto aliases mode: enable with yes or on,\n\ disable with no or off\n\ @@ -1858,7 +1860,7 @@ int main(int argc, char** argv) dprint_init_colors();
/* command line options */ - options= ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:" + options= ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:" #ifdef STATS "s:" #endif @@ -2051,6 +2053,7 @@ int main(int argc, char** argv) case 'Q': case 'a': case 's': + case 'Y': break; case '?': if (isprint(optopt)) { @@ -2270,6 +2273,9 @@ int main(int argc, char** argv) case 'w': working_dir=optarg; break; + case 'Y': + runtime_dir=optarg; + break; case 't': chroot_dir=optarg; break;