modified wrapper to handle alternc_lxc via xinetd
This commit is contained in:
parent
3733a0d787
commit
aaaf7f3f62
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
my $line = <>;
|
my $line = <>;
|
||||||
|
|
||||||
my $nb = int(rand(42));
|
|
||||||
|
|
||||||
if ($nb % 2 == 0) {
|
|
||||||
print "Error message here||\n";
|
|
||||||
} else {
|
|
||||||
print "Ok|127.0.0.1:4242|localhost:4242\n";
|
|
||||||
my ($action,$login,$pass,$uid) = split /|/, $line;
|
my ($action,$login,$pass,$uid) = split /|/, $line;
|
||||||
printf("Hi %s (%d) do you want to %s? -> btw your pass is %s\n", $login, $uid, $action, $pass);
|
print `alterc_lxc $action $login $pass $uid`;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue