Changes in conf.c [f4a5940:34b17d9]
Legend:
- Unmodified
- Added
- Removed
-
conf.c
rf4a5940 r34b17d9 61 61 conf->configdir = g_strdup( CONFIG ); 62 62 conf->plugindir = g_strdup( PLUGINDIR ); 63 conf->pidfile = g_strdup( "/var/run/bitlbee.pid" ); 63 64 conf->motdfile = g_strdup( ETCDIR "/motd.txt" ); 64 65 conf->ping_interval = 180; … … 77 78 } 78 79 79 while( argc > 0 && ( opt = getopt( argc, argv, "i:p: nvIDFc:d:h" ) ) >= 0 )80 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:h" ) ) >= 0 ) 80 81 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 81 82 { … … 92 93 } 93 94 conf->port = i; 95 } 96 else if( opt == 'p' ) 97 { 98 g_free( conf->pidfile ); 99 conf->pidfile = g_strdup( optarg ); 94 100 } 95 101 else if( opt == 'n' ) … … 175 181 else 176 182 conf->runmode = RUNMODE_INETD; 183 } 184 else if( g_strcasecmp( ini->key, "pidfile" ) == 0 ) 185 { 186 g_free( conf->pidfile ); 187 conf->pidfile = g_strdup( ini->value ); 177 188 } 178 189 else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 )
Note: See TracChangeset
for help on using the changeset viewer.