- Timestamp:
- 03/03/16 12:58:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/bkmkd
r118 r122 18 18 ); 19 19 20 my %run = (21 run => \&run_server,22 start => \&start_server,23 stop => sub { signal_server('QUIT') },24 restart => sub { signal_server('HUP') },25 );26 27 20 my %default_config = ( 28 21 server_root => cwd, … … 31 24 error_log => 'error', 32 25 pid_file => 'pid', 26 ); 27 28 my %run = ( 29 init => sub { 30 $CONFIG_FILE ||= 'server.yml'; 31 my $config = { 32 %default_config, 33 %DEFINES, 34 }; 35 print Dump($config) if $VERBOSE; 36 YAML::DumpFile($CONFIG_FILE, $config); 37 print "Wrote config to $CONFIG_FILE\n" if $VERBOSE; 38 }, 39 run => \&run_server, 40 start => \&start_server, 41 stop => sub { signal_server('QUIT') }, 42 restart => sub { signal_server('HUP') }, 33 43 ); 34 44
Note: See TracChangeset
for help on using the changeset viewer.