On Wed, Oct 10, 2012 at 10:59 AM, Arun Khan <[email protected]> wrote:

> Let us know your final solution.
>
>
Thanks Arun, Balachandran & Vignesh
Ok, I got it working

As mentioned earlier, simply adding the app to inittab did not work. It was
running, but was not taking any keyboard input.
BTW, I am using Ubuntu 12.04 and there is no /etc/inittab. There is a file
/etc/init/tty1.conf which configures what runs in tty1.
The solution involved wrapping the app in a shell script like this one:

#!/bin/sh
exec </dev/tty1
exec >/dev/tty1
exec 2>/dev/tty1
/path/to/app

and then calling this wrapper script instead of the app from init/upstart :

[/etc/init/tty1.conf]
.
.
.
respawn
exec /path/to/wrapper-script



Thanks and regards,
Arun
http://wondroussky.blogspot.in/

"கற்றது கைமண் அளவு, கல்லாதது உலகளவு" - ஔவையார்
Known is a drop, Unknown is an ocean
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to