Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Tip box added on how to avoid the service FAILED state

...

Due to the absence of stop script, the service receives a SIGKILL signal and then, once stopped, is considered as failed:

Tip

The FAILED status is the result of the lack of stop script, as there's no way to know a clean shutdown of the legacy operating system was done. To solve this issue and have an INACTIVE state when a virtual machine is stopped, please define a stop script as explained below.


Div
classpagebreak


Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

...

We can see below the guest has been properly stopped and is now in INACTIVE / REQUESTED and not in FAILED state:

Notes:

  • Option 4 of the menu can help seeing the result of the shutdown commands
  • Option 4 can also be used to edit the .service file to allow you to specify the service description, the auto-restart settings, etc... For more, see "# man systemd.service"

...