Re: running at boot time & signals
- From: Lew Pitcher <Lew.Pitcher@xxxxxx>
- Date: Wed, 25 Jan 2006 10:40:15 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
maria wrote:
> So what I'm doing is creating a Knoppix CD, so users can just turn on
> the computer with the CD in the drive and it'll boot and run the
> program automatically without them having to know anything about Linux
> or do anything else. So waiting for a login and putting it in .profile
> won't really work well.
>
> Running from init, there are some choices a user makes and those work
> fine with menus on stdin/stdout. It's just the signals that are
> getting lost. But the lack of a controlling terminal does make sense.
> Hmm...
Your best bet is to set up the inittab so that one terminal goes
straight to your script as a specific user, rather than presenting the
getty/login process for the terminal
This way,
- - your process gets a controlling terminal,
- - the process doesn't have to run as root, and
- - the user doesn't have to log in
but the user still gets the benefit of a terminal session set up for
your own process.
You will want something like
#c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c1:1235:respawn:/bin/su - username -c /path </dev/tty1 >/dev/tty1 2>&1
where 'username' is the user login name of the user you want the script
to run as, and '/path' is the fully qualified path to the script you
want to run.
- --
Lew Pitcher, IT Specialist, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFD15veagVFX4UWr64RAml7AJ44k1M5y5y1jP5VhUisyPE/UukA6wCfTUZP
qmLlKM5VPTzSQVN0/ylXgvU=
=NF6G
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: running at boot time & signals
- From: maria
- Re: running at boot time & signals
- References:
- running at boot time & signals
- From: maria
- Re: running at boot time & signals
- From: Lew Pitcher
- Re: running at boot time & signals
- From: maria
- running at boot time & signals
- Prev by Date: Re: running at boot time & signals
- Next by Date: Re: Serial communication, detecting parity bits
- Previous by thread: Re: running at boot time & signals
- Next by thread: Re: running at boot time & signals
- Index(es):
Relevant Pages
|