Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. baka@baka-dell:~$ ssh root@192.168.1.61
  2. root@192.168.1.61's password:
  3. Last login: Fri Oct 24 14:18:12 2014
  4. [root@localhost ~]# cat /etc/init
  5. init/ init.d/ inittab
  6. [root@localhost ~]# cat /etc/init/start-ttys.conf
  7. #
  8. # This service starts the configured number of gettys.
  9. #
  10. # Do not edit this file directly. If you want to change the behaviour,
  11. # please create a file start-ttys.override and put your changes there.
  12.  
  13. start on stopped rc RUNLEVEL=[2345]
  14.  
  15. env ACTIVE_CONSOLES=/dev/tty[1]
  16. env X_TTY=/dev/tty1
  17. task
  18. script
  19. . /etc/sysconfig/init
  20. for tty in $(echo $ACTIVE_CONSOLES) ; do
  21. [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue
  22. initctl start tty TTY=$tty
  23. done
  24. end script
  25. [root@localhost ~]# cat /etc/init/
  26. control-alt-delete.conf quit-plymouth.conf serial.conf
  27. init-system-dbus.conf rc.conf splash-manager.conf
  28. kexec-disable.conf rcS.conf start.conf
  29. plymouth-shutdown.conf rcS-emergency.conf start-ttys.conf
  30. prefdm.conf rcS-sulogin.conf tty.conf
  31. [root@localhost ~]# cat /etc/init/start.conf
  32. start on runlevel [345]
  33. stop on runlevel [!345]
  34.  
  35. respawn
  36. instance /dev/tty7
  37. exec /sbin/mingetty tty7 19200 vt100-nav
  38. [root@localhost ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement