弁財天

ゴフマン「専門家を信じるのではなく、自分自身で考えて判断せよ」

console login getty

Fedora23では、

# mkdir /etc/systemd/system/getty.target.wants
# ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service 
# systemctl enable getty@tty1.service
# systemctl start getty@tty1.service
なのかもw

F.2.4. The /sbin/init Program
もう仕様がコロコロ変わってよくわからん

/etc/inittabに

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
# 略
# Run xdm in runlevel 5
#x:5:respawn:/etc/X11/prefdm -nodaemon
などと書く仕様はなくなり
/etc/event.d/tty1
/etc/event.d/prefdm
に変わったのかと思ってたのも束の間

Fedora16 Beta serial console

[root@benzaiten getty.target.wants]# pwd
/etc/systemd/system/getty.target.wants
[root@benzaiten getty.target.wants]# ls
getty@tty1.service  getty@tty3.service  getty@tty5.service
getty@tty2.service  getty@tty4.service  getty@tty6.service
[root@benzaiten getty.target.wants]# ls -l
合計 0
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty1.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty2.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty3.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty4.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty5.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx. 1 root root 34 11月  7  2010 getty@tty6.service -> /lib/systemd/system/getty@.service
[root@benzaiten getty.target.wants]#
のようにsystemctlで使うように変わったようだ

[root@benzaiten getty.target.wants]# systemctl status getty@tty1.service
getty@tty1.service - Getty on tty1
          Loaded: loaded (/lib/systemd/system/getty@.service; enabled)
          Active: inactive (dead) since Fri, 17 Feb 2012 08:59:49 +0900; 15s ago
         Process: 6124 ExecStart=/sbin/agetty %I 38400 (code=killed, signal=HUP)
          CGroup: name=systemd:/system/getty@.service/tty1
[root@benzaiten getty.target.wants]# systemctl start getty@tty1.service
[root@benzaiten getty.target.wants]# systemctl status getty@tty1.service
getty@tty1.service - Getty on tty1
          Loaded: loaded (/lib/systemd/system/getty@.service; enabled)
          Active: active (running) since Fri, 17 Feb 2012 09:00:12 +0900; 1s ago
        Main PID: 6629 (agetty)
          CGroup: name=systemd:/system/getty@.service/tty1
                  m 6629 /sbin/agetty tty1 38400
[root@benzaiten getty.target.wants]#

シンボリックリンクのあるなしがenableとdisable

[root@benzaiten system]# systemctl status prefdm.service
prefdm.service - Display Manager
          Loaded: loaded (/lib/systemd/system/prefdm.service; static)
          Active: inactive (dead) since Fri, 17 Feb 2012 09:08:45 +0900; 1s ago
        Main PID: 6891 (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/prefdm.service
[root@benzaiten system]# systemctl start prefdm.service
[root@benzaiten system]# systemctl status prefdm.service
prefdm.service - Display Manager
          Loaded: loaded (/lib/systemd/system/prefdm.service; static)
          Active: active (running) since Fri, 17 Feb 2012 09:08:51 +0900; 1s ago
        Main PID: 7498 (gdm-binary)
          CGroup: name=systemd:/system/prefdm.service
                  t 7498 /usr/sbin/gdm-binary -nodaemon
                  t 7528 /usr/libexec/gdm-simple-slave --display-id /org/gnome/Displa...
                  t 7531 /usr/bin/Xorg :0 -br -verbose -logverbose 7 -auth /var/run/g...
                  t 7550 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --se...
                  m 7551 gdm-session-worker [pam/gdm-welcome]
[root@benzaiten system]# systemctl status prefdm.service
prefdm.service - Display Manager
          Loaded: loaded (/lib/systemd/system/prefdm.service; static)
          Active: active (running) since Fri, 17 Feb 2012 09:08:51 +0900; 7s ago
        Main PID: 7498 (gdm-binary)
          CGroup: name=systemd:/system/prefdm.service
                  t 7498 /usr/sbin/gdm-binary -nodaemon
                  t 7528 /usr/libexec/gdm-simple-slave --display-id /org/gnome/Displa...
                  t 7531 /usr/bin/Xorg :0 -br -verbose -logverbose 7 -auth /var/run/g...
                  t 7550 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --se...
                  t 7571 /usr/libexec/gvfsd
                  t 7573 /usr/libexec/at-spi-bus-launcher
                  t 7577 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.co...
                  t 7580 /usr/libexec/at-spi2-registryd --use-gnome-session
                  t 7588 /usr/libexec/gconfd-2
                  t 7590 /usr/libexec/dconf-service
                  m 7595 gdm-session-worker [pam/gdm-password]
[root@benzaiten system]#

In runlevel 5, Upstart runs a script called /etc/X11/prefdm. The prefdm script executes the preferred X display manager[10] — gdm, kdm, or xdm, depending on the contents of the /etc/sysconfig/desktop file.
そんなファイルはないし

/lib/systemd/system/prefdm.service

# On Fedora gdm/X11 is on tty1. We explicitly cancel the getty here to
# avoid any races around that.
Conflicts=getty@tty1.service plymouth-quit.service
After=getty@tty1.service plymouth-quit.service
getty@tty1.serviceがあがってないと思ったら、排他的に起動するようになってる

投稿されたコメント:

コメント
コメントは無効になっています。