From aaaf7f3f6247cca2247964916649b069888825f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Serman?= Date: Sun, 21 Apr 2013 10:14:55 +0000 Subject: [PATCH] modified wrapper to handle alternc_lxc via xinetd --- src/alternc_lxc_remote | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/alternc_lxc_remote b/src/alternc_lxc_remote index 5ebd8238..db20dfb9 100755 --- a/src/alternc_lxc_remote +++ b/src/alternc_lxc_remote @@ -2,13 +2,6 @@ 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; - printf("Hi %s (%d) do you want to %s? -> btw your pass is %s\n", $login, $uid, $action, $pass); -} +my ($action,$login,$pass,$uid) = split /|/, $line; +print `alterc_lxc $action $login $pass $uid`;