On Thu, 2008-02-07 at 13:02 -0800, [EMAIL PROTECTED] wrote:

> I want to modify /etc/event.d/ttyS2 to not launch getty when
> /dev/ttyS2 is not present.
> 
You could do it as a single script:

        start on runlevel 2
        stop on runlevel [!2]

        pre-start exec [ -e /dev/ttyS2 ] || stop

        exec /sbin/getty -L ttyS2 115200 vt100
        respawn

But that still at least attempts to start it.

The "correct" way (which is still being worked on):

        while tty-present
        exec /sbin/getty -L $TTY 115200 vt100

(tty-present being defined as:
        from tty-added
        until tty-removed $TTY)

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to