Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r34b17d9 r7cf85e7  
    3232#include "ini.h"
    3333#include "url.h"
     34#include "ipc.h"
    3435
    3536#include "protocols/proxy.h"
     
    7879        }
    7980       
    80         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:h" ) ) >= 0 )
     81        while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:" ) ) >= 0 )
    8182        /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */
    8283        {
     
    138139                                "  -D  Daemon mode. (Still EXPERIMENTAL!)\n"
    139140                                "  -F  Forking daemon. (one process per client)\n"
     141                                "  -P  Specify PID-file (not for inetd mode)\n"
    140142                                "  -i  Specify the interface (by IP address) to listen on.\n"
    141143                                "      (Default: 0.0.0.0 (any interface))\n"
     
    147149                                "  -h  Show this help page.\n" );
    148150                        return( NULL );
     151                }
     152                else if( opt == 'R' )
     153                {
     154                        /* We can't load the statefile yet (and should make very sure we do this
     155                           only once), so set the filename here and load the state information
     156                           when initializing ForkDaemon. (This option only makes sense in that
     157                           mode anyway!) */
     158                        ipc_master_set_statefile( optarg );
    149159                }
    150160        }
Note: See TracChangeset for help on using the changeset viewer.