FAQ
hi

why are tty3-tty6 started after this config change?

i would like to have only tty1 finally becasue on a virtual machine
there is no need for the other processes since CTRL+ALT+Fx is caught
by the own system and remote console mostly not needed at all

[root at centos ~]# cat /etc/init/start-ttys.conf
#
# This service starts the configured number of gettys.

start on stopped rc RUNLEVEL=[2345]

env ACTIVE_CONSOLES=/dev/tty[1-2]
env X_TTY=/dev/tty1
task
script
. /etc/sysconfig/init
for tty in $(echo $ACTIVE_CONSOLES) ; do
[ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue
initctl start tty TTY=$tty
done
end script

[root at centos ~]# ps aux | grep tty
root 1626 0.0 0.0 4044 540 tty1 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty1
root 1628 0.0 0.0 4044 544 tty2 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty2
root 1630 0.0 0.0 4044 544 tty3 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty3
root 1632 0.0 0.0 4044 540 tty4 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty4
root 1634 0.0 0.0 4044 544 tty5 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty5
root 1636 0.0 0.0 4044 540 tty6 Ss+ 01:12 0:00 /sbin/mingetty /dev/tty6

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.centos.org/pipermail/centos/attachments/20111106/19fd4361/attachment.bin

Search Discussions

  • John R. Dennison at Nov 6, 2011 at 12:27 am

    On Sun, Nov 06, 2011 at 04:55:53AM +0100, Reindl Harald wrote:
    hi

    why are tty3-tty6 started after this config change?
    The script is sourcing in /etc/sysconfig/init which has ACTIVE_CONSOLES
    defined; when the file is sourced it overwrites the values you set in
    /etc/init/start-ttys.conf.




    John
    --
    In today's online world, what your mother told you is true, only more so:
    people really can judge you by your friends.

    -- Harold Abelson, MIT computer science professor, on personal information
    that can be gleaned from social networking sites, NY Times, 17 March 2010
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 189 bytes
    Desc: not available
    Url : http://lists.centos.org/pipermail/centos/attachments/20111105/3164f835/attachment.bin
  • Reindl Harald at Nov 6, 2011 at 12:33 am

    Am 06.11.2011 05:27, schrieb John R. Dennison:
    On Sun, Nov 06, 2011 at 04:55:53AM +0100, Reindl Harald wrote:
    hi

    why are tty3-tty6 started after this config change?
    The script is sourcing in /etc/sysconfig/init which has ACTIVE_CONSOLES
    defined; when the file is sourced it overwrites the values you set in
    /etc/init/start-ttys.conf.
    thank you, that was it!

    [root at centos ~]# ps aux | grep tty
    root 1660 0.0 0.0 4044 540 tty1 Ss+ 05:32 0:00 /sbin/mingetty /dev/tty1
    root 1724 0.0 0.0 105292 884 pts/0 S+ 05:32 0:00 grep --color tty

    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: signature.asc
    Type: application/pgp-signature
    Size: 262 bytes
    Desc: OpenPGP digital signature
    Url : http://lists.centos.org/pipermail/centos/attachments/20111106/51f98823/attachment.bin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedNov 5, '11 at 11:55p
activeNov 6, '11 at 12:33a
posts3
users2
websitecentos.org
irc#centos

2 users in discussion

Reindl Harald: 2 posts John R. Dennison: 1 post

People

Translate

site design / logo © 2022 Grokbase