From b1178ff5fa11a840f971b494b2e874cb358d047c Mon Sep 17 00:00:00 2001 From: Bert Burgemeister Date: Tue, 22 Dec 2009 15:05:23 +0100 Subject: [PATCH] A few edits. Pokinom starts with a nap. --- monikop | 2 +- monikop.config.example | 4 ++-- pokinom | 6 +++++- pokinom.config.example | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/monikop b/monikop index 2147733..3d90085 100755 --- a/monikop +++ b/monikop @@ -21,7 +21,7 @@ my @monikop_banner = ( my $debug = 0; # Where to read local configuration: -my $monikop_config = 'monikop.config'; +my $monikop_config = '~/monikop/monikop.config'; ######################################## # Settings diff --git a/monikop.config.example b/monikop.config.example index f6e30ea..36a4cc9 100644 --- a/monikop.config.example +++ b/monikop.config.example @@ -63,12 +63,12 @@ $safe_file_unfinished_suffix = # What to do (shutdown) when F3 has been pressed: $key_f3_action = - "halt" + "sudo halt -p" ; # What to do (reboot) when F6 has been pressed: $key_f6_action = - "reboot" + "sudo reboot" ; # Rsyncs time (in seconds) to wait for a response: diff --git a/pokinom b/pokinom index f433b67..8df8563 100755 --- a/pokinom +++ b/pokinom @@ -20,7 +20,7 @@ my @pokinom_banner = ( my $debug = 0; # Where to read local configuration: -my $pokinom_config = 'pokinom.config'; +my $pokinom_config = '~/monikop/pokinom.config'; ######################################## # Settings @@ -181,6 +181,10 @@ map { $being_deleted_thread{$_} = async { qx(rm -rf $p_i_d_being_deleted 2> /dev/null); }; } keys %source_roots; +# This could be more sophisticated +print "Waiting for $destination to become reachable.\n"; +sleep 10; + my %rsync_worker_thread; my %rsync_exec_form; diff --git a/pokinom.config.example b/pokinom.config.example index 7c9602e..0f63edc 100644 --- a/pokinom.config.example +++ b/pokinom.config.example @@ -57,7 +57,7 @@ $shut_down_when_done = # How to turn off: $shut_down_action = - "halt" + "sudo halt -p" ; # Rsync's directory (relative to destination) for partially transferred files. -- 2.11.4.GIT