재부팅/종료 시 Systemd가 중단됩니다. 사용 가능한 로그가 없습니다.

재부팅/종료 시 Systemd가 중단됩니다. 사용 가능한 로그가 없습니다.

로그를 얻을 수 없는 경우 종료 중에 시스템이 정지되는 서비스를 어떻게 알 수 있습니까?

재부팅하거나 종료하려고 할 때마다 시스템이 중단되는 원인이 무엇인지 알아내려고 며칠 동안 고군분투했습니다. 종료 프로세스가 일부 진행되지만 완료되지는 않습니다. 이 시스템은 액세스용 직렬 콘솔만 있는 시스템에 있습니다. 이더넷 포트가 없습니다. 쓰기 가능한 유일한 디스크는 RAM 드라이브이므로 재부팅 후 Journalctl을 보는 것은 쓸모가 없습니다.

아키텍처는 Arm64의 우분투 18.04이며 내가 아는 것은 다음뿐입니다.

[  OK          Stopping Session 3 of user root.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
         Stopping Authorization Manager...
[  OK  ] Stopped Discard unused blocks once a week.
         Stopping Availability of block devices...
[  OK  ] Stopped target Graphical Interface.
         Stopping Disk Manager...
[  OK  ] Stopped target Multi-User System.
         Stopping strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf...
         Stopping System Logging Service...
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
         Stopping Serial Getty on ttyS0...
         Stopping Unattended Upgrades Shutdown...
         Stopping Dispatcher daemon for systemd-networkd...
         Stopping D-Bus System Message Bus...
         Stopping Chassis Fan Service...
         Stopping Regular background program processing daemon...
         Stopping OpenBSD Secure Shell server...
[  OK  ] Stopped Resets System Activity Data Collector.
         Stopping vsftpd FTP server...
         Stopping Nexcopy Graphical Interface...
[  OK  ] Stopped Nexcopy Gadget Service.
         Stopping LSB: Load kernel image with kexec...
         Stopping LSB: HPA's tftp server...
         Stopping User Manager for UID 0...
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Getty on ttyGS0...
[  OK  ] Stopped Message of the Day.
         Stopping Network Name Resolution...
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped Dispatcher daemon for systemd-networkd.
[  OK  ] Stopped Disk Manager.
[  OK  ] Stopped strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped vsftpd FTP server.
[  OK  ] Stopped Unattended Upgrades Shutdown.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Stopped Nexcopy Graphical Interface.
[  OK  ] Stopped Getty on tty1.

중단을 일으키는 원인은 다음 서비스 시도일 가능성이 높습니다. 그것이 무엇인지 어떻게 알 수 있습니까?

재부팅 -f는 제대로 작동하므로 이것이 하드웨어 문제가 아니라는 것을 알고 있습니다.

중지하려는 서비스에 대해 더 자세한 정보를 출력하도록 systemd를 얻을 수 있습니까?

나는 시도했다:

systemctl 재부팅 --dry-run

그것이 무엇을 하려고 했는지 알려주길 바라지만 어쨌든 실제 종료 절차를 시작했기 때문에 --dry-run은 무시됩니다.

대기열의 다음 항목을 볼 수 있도록 작업 목록을 출력하도록 systemd를 얻을 수 있는 방법이 있습니까? 액세스를 위한 단일 직렬 콘솔만으로 다른 무엇을 시도할 수 있는지 잘 모르겠습니다.

누구든지 제안이 있나요?

편집: 이 agan을 본 후 한 가지 질문이 있습니다. 이 시스템의 ttyS0은 내가 로그인한 콘솔이자 포트입니다. 메시지가 종료되기 직전에 getty가 이 포트에서 중지되어 아마도 로그아웃된 것으로 보입니다. getty가 중지되어 추가 데이터가 보고되지 않을 수 있습니까? 그렇다면 이 문제를 해결할 수 있는 방법이 있나요?

관련 정보