systemd에서 vpp.service를 로드하는 데 문제가 있습니다. 나는 다음 서비스를 작성했습니다.
[Unit]
Description=Vector Packet Processing Process
After=syslog.target network.target auditd.service
[Service]
#ExecStartPre=-/bin/rm -f /dev/shm/db /dev/shm/global_vm /dev/shm/vpe-api
#ExecStartPre=-/sbin/modprobe uio_pci_generic
ExecStart=/usr/IMS/current/bin/vpp/vpp -c /usr/IMS/current/bin/vpp/startup_new.conf
Type=forking
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
다음과 같은 결과가 나타납니다.
vpp.service - Vector Packet Processing Process
Loaded: loaded (/etc/systemd/system/vpp.service; disabled; vendor preset: disabled)
Active: deactivating (stop-sigterm) since Tue 2020-01-21 11:34:26 IST; 58s ago
Process: 2019 ExecStart=/usr/IMS/current/bin/vpp/vpp -c /usr/IMS/current/bin/vpp/startup_new.conf (code=exited, status=0/SUCCESS)
Main PID: 2019 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/vpp.service
└─2026 /usr/IMS/current/bin/vpp/vpp -c /usr/IMS/current/bin/vpp/startup_new.conf
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: pppoe_plugin.so (PPPoE)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: router_plugin.so (router)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: stn_plugin.so (VPP Steals the NIC for Container integration)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: svs_plugin.so (Source VRF Select)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: tlsopenssl_plugin.so (openssl based TLS Engine)
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:117: Plugin disabled (default): unittest_plugin.so
Jan 21 11:34:26 2-9.mavenir1.com vpp[2019]: load_one_plugin:189: Loaded plugin: vmxnet3_plugin.so (VMWare Vmxnet3 Device Plugin)
잠시 후 나는 다음과 같이 충돌할 것이라고 생각합니다.
[root@2-9 system]# systemctl status vpp
● vpp.service - Vector Packet Processing Process
Loaded: loaded (/etc/systemd/system/vpp.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #2 0x00007f41467cb5aa 0x7f41467cb5aa
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #3 0x00007f414611c5d0 0x7f414611c5d0
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #4 0x00007f4145e8b8d0 0x7f4145e8b8d0
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #5 0x00007f4145e90994 0x7f4145e90994
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #6 0x00007f4145eea984 0x7f4145eea984
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #7 0x00007f414520e5ac 0x7f414520e5ac
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #8 0x00007f41467cb9a7 0x7f41467cb9a7
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #9 0x0000000000406e1a 0x406e1a
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #10 0x00007f41450f4495 0x7f41450f4495
Jan 21 11:32:20 2-9.mavenir1.com /usr/IMS/current/bin/vpp/vpp[1712]: #11 0x00000000004079ff 0x4079ff
누구든지 나를 도와줄 수 있나요?
답변1
systemd는 아무것도 멈추지 않습니다. 데몬이 종료 중입니다., systemd는 보조 나머지 프로세스라고 부르는 것을 정리합니다.
부분적으로 이는 VPP doco가 지정한 방식으로 실행하지 않기 때문입니다.nodaemon
구성 파일에는그리고사용Type=simple
.
그리고 사람들에게 기호 없이 부분적인 스택트레이스만 제공하고 있습니다.더 일찍("언젠가"가 아님; 타임스탬프를 읽으십시오) 데몬이 완전히 충돌합니다. 통찰력이 없는 사람이 이 문제를 디버깅할 수 있는 방법은 없습니다.
누구든지 나를 도와줄 수 있나요?
따라서 엄밀히 말하면 이 예/아니오 질문에 대한 대답은 "아니오"입니다.