aboutsummaryrefslogtreecommitdiffstats
path: root/clients
diff options
context:
space:
mode:
authorKnut Auvor Grythe <knut@auvor.no>2015-03-31 16:38:01 +0200
committerKnut Auvor Grythe <knut@auvor.no>2015-03-31 16:38:01 +0200
commitbae936a701bd791518bf7acff2d10eb8fb6bab54 (patch)
tree34518f60687acb75d66a9c814336b01b4807e0eb /clients
parent69747efcf8aca1a3c1241eb126bf0d0e27b8af05 (diff)
now featuring reduced security on ssh
Diffstat (limited to 'clients')
-rwxr-xr-xclients/smanagrun.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/clients/smanagrun.pl b/clients/smanagrun.pl
index a68edf8..30a702d 100755
--- a/clients/smanagrun.pl
+++ b/clients/smanagrun.pl
@@ -127,6 +127,11 @@ while (1) {
waitpid($ssh->{pid}, 0);
$sunlock->execute($switch->{sysname});
};
- warn $@ if $@;
+ if ($@) {
+ warn $@;
+ $sdelay->execute($@ . ", delaying...", $switch->{sysname});
+ $sunlock->execute($switch->{sysname});
+ $dbh->commit();
+ }
}