Changeset 1d2e3c2 for conf.c


Ignore:
Timestamp:
2006-02-02T13:59:14Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ec3e411
Parents:
34b17d9 (diff), a49dcd5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Added RESTART command for easier upgrades without losing IPC connections.
(Obviously only works well for forking daemon mode.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r34b17d9 r1d2e3c2  
    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        {
     
    147148                                "  -h  Show this help page.\n" );
    148149                        return( NULL );
     150                }
     151                else if( opt == 'R' )
     152                {
     153                        /* We can't load the statefile yet (and should make very sure we do this
     154                           only once), so set the filename here and load the state information
     155                           when initializing ForkDaemon. (This option only makes sense in that
     156                           mode anyway!) */
     157                        ipc_master_set_statefile( optarg );
    149158                }
    150159        }
Note: See TracChangeset for help on using the changeset viewer.