• Bug#266719: console-log: daemon --forground used, this causes the upgra

    From Mike Mestnik) (The Archmage Forever@1:229/2 to All on Wed Aug 18 22:10:15 2004
    From: [email protected]

    Package: console-log
    Version: 1.0-9
    Severity: normal

    The daemon manpage says that a "--pty" will allocate a tty ?only? if daemon
    is not connected to a tty. It must be manditory|?policy? for maintanor
    scripts not to exit while still attached to the user's tty. This is so that ssh connections used to upgrade systems will exit cleanly, with all
    *non-user* backgrounded procs detached.

    I think it would be best just to drop the --forground flag, if not I'l be
    happy to express your consers to the daemon ppl.

    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (930, 'unstable'), (900, 'testing'), (1, 'experimental') Architecture: sparc (sparc64)
    Kernel: Linux 2.4.26-cheako
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages console-log depends on:
    ii adduser 3.59 Add and remove users and groups
    ii console-tools 1:0.2.3dbs-55 Linux console and font utilities ii daemon 0.6.3-1 turns other processes into daemons ii debconf [debconf-2.0] 1.4.30 Debian configuration management sy ii less 382-1 Pager program similar to more
    ii passwd 1:4.0.3-30 Change and administer password and

    -- debconf information:
    console-log/upgrade-note/config-file-format-pre-0.8:


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Marc Haber@1:229/2 to All on Wed Aug 18 22:40:15 2004
    From: [email protected]

    On Wed, Aug 18, 2004 at 02:58:18PM -0500, Mike Mestnik) (The Archmage Forever wrote:
    The daemon manpage says that a "--pty" will allocate a tty ?only? if daemon is not connected to a tty. It must be manditory|?policy? for maintanor scripts not to exit while still attached to the user's tty. This is so that ssh connections used to upgrade systems will exit cleanly, with all *non-user* backgrounded procs detached.

    daemon stays connected to the vt opened by openvt and not to the user
    vt. This is necessary since daemon is used to run a program that
    actually uses the tty. This is the object of having console-log.

    I think it would be best just to drop the --forground flag,

    Did you actually try that? When I did that for the last time (about
    two years ago when migrating from run to daemon), less didn't come up
    on the new tty.

    daemon is actuall used here besides its spec because it is meant to
    detach from the terminal to run a non-interactive program in the
    background. console-log uses daemon to automatically restart an
    _interactive_ program, less, after its termination.

    Greetings
    Marc

    -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Karlsruhe, Germany | lose things." Winona Ryder | Fon: *49 721 966 32 15 Nordisch by Nature | How to make an American Quilt | Fax: *49 721 966 31 29


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)