From f5c2f72917e5f75634665f67a6105e1e82ece875 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 8 Nov 2009 00:55:39 +0100 Subject: add more service examples Signed-off-by: Denys Vlasenko --- examples/var_service/getty_tty1/run | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 examples/var_service/getty_tty1/run (limited to 'examples/var_service/getty_tty1/run') diff --git a/examples/var_service/getty_tty1/run b/examples/var_service/getty_tty1/run new file mode 100755 index 000000000..c7c413ba4 --- /dev/null +++ b/examples/var_service/getty_tty1/run @@ -0,0 +1,30 @@ +#!/bin/sh + +exec >/dev/null +exec 2>&1 +exec "$tty" 2>&1 +# using . in order to be able to set env (TERM etc) in cfg +test -x ./cfg && . ./cfg + +exec \ +env - "TERM=$TERM" PATH="$PATH" LOGIN_PRE_SUID_SCRIPT="$PWD/login.sh" \ +softlimit \ +setuidgid "$user" \ +getty "$baud" "$tty" "$TERM" -- cgit v1.2.3