
status=217/USER
이 D001615(AD 사용자)에 따라 존재하지 않음을 의미하는 오류 코드(아래 참조)와 함께 시스템 부팅 시 시작되지 않는 systemd 서비스가 있습니다.답변.
그러나 루트를 사용하여 서비스를 수동으로 다시 시작하면 D001615와 같이 정상적으로 실행됩니다.
[[email protected] SYST:~]# ps -Af --forest | grep runsvc
root 1439 1293 0 09:52 pts/0 00:00:00 \_ grep --color=auto runsvc
d001615 1340 1 0 09:51 ? 00:00:00 /bin/bash /opt/azagent/runsvc.sh
저는 시스템 관리자가 아니며 Linux 서버가 Active Directory를 사용하도록 구성되어 있다는 것만 알고 있습니다.
시작 시 서비스를 실행하기 위해 systemd에 사용할 수 있는 사용자 계정을 어떻게 확인할 수 있습니까?? 시도해 보았 getent passwd
으나 에 있는 계정 이외의 다른 계정은 나열되지 않습니다. /etc/passwd
특히 LDAP 서버의 POSIX 항목은 표시되지 않습니다.
D001615로 시스템 시작 시 서비스를 실행하도록 systemd를 구성하는 방법?
참고: 루트에서 D001615로 변경할 수 있었 su d001615
으므로 D001615는 호스트의 사용자로 존재합니다.
systemctl status -l 'vsts.agent.azuredevops.Application\x20Security\x2dsds.host.example.net.service'
● vsts.agent.azuredevops.Application\x20Security\x2dsds.host.example.net.service - Azure Pipelines Agent (azuredevops.Application Security-sds.host.example.net)
Loaded: loaded (/etc/systemd/system/vsts.agent.azuredevops.Application\x20Security\x2dsds.host.example.net.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-11-24 06:17:35 CET; 3h 13min ago
Process: 2071 ExecStart=/opt/azagent/runsvc.sh (code=exited, status=217/USER)
Main PID: 2071 (code=exited, status=217/USER)
cat /etc/systemd/system/vsts.agent.azuredevops.Application\x20Security\x2dsds.host.example.net.service
[Unit]
Description=Azure Pipelines Agent (azuredevops.Application Security-sds.host.example.net)
After=network.target
[Service]
ExecStart=/opt/azagent/runsvc.sh
User=d001615
WorkingDirectory=/opt/azagent
KillMode=process
KillSignal=SIGTERM
TimeoutStopSec=5min
[Install]
WantedBy=multi-user.target