Browse Source

core: new command line option '-Y dir'

- set the runtime directory (used to create fifo, ctl socket, etc...)
Daniel-Constantin Mierla 9 years ago
parent
commit
9834ed6ea8
1 changed files with 8 additions and 2 deletions
  1. 8 2
      main.c

+ 8 - 2
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 @@ try_again:
 			case 'w':
 					working_dir=optarg;
 					break;
+			case 'Y':
+					runtime_dir=optarg;
+					break;
 			case 't':
 					chroot_dir=optarg;
 					break;