Google Compute Engine - 종료 시 systemd 서비스가 0으로 종료될 때까지 기다립니다.

Google Compute Engine - 종료 시 systemd 서비스가 0으로 종료될 때까지 기다립니다.

Google Compute Engine에 몇 개의 인스턴스가 있습니다. 옵션 이 포함된 시스템 서비스가 있습니다 ExecStop. 스크립트 실행에는 상당한 시간(5~10분)이 걸릴 수 있습니다.

GCE 인스턴스를 종료할 때 이 스크립트가 실행되지만 GCE 인스턴스가 완료되기 전에 종료되어 무시되므로 완료되지 않습니다.

이 스크립트를 올바르게 마무리하고 완전히 완성하는 것은 매우 중요합니다.

Google 문서에서:

Stopping an instance causes Compute Engine to send the ACPI Power Off signal to the instance. Modern guest operating systems are configured to perform a clean shutdown before powering off in response to the power off signal.

systemd 서비스가 중지될 때까지 기다리도록 GCE에 지시할 수 있는 방법이 있나요?

관련 정보