Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for 90 second LX systemd stop/reboot delay #1022

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 7, 2022

  1. Add workaround for 90 second LX systemd stop/reboot delay

    On SmartOS LX, systemd uses its "legacy cgroup hierarchy" (cgroup-v1)
    codepath, which does not signal when the root cgroup becomes empty,
    causing it to wait 90 seconds before continuing to shut down.
    
    This commit modifies vmadm to send the `systemd-shutdown` process
    SIGCHLD every second during a `vmadm stop` or `vmadm reboot` command,
    which causes `systemd-shutdown` to re-check its list of remaining
    processes, which removes the unnecessary wait.
    smokris committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    b711bc3 View commit details
    Browse the repository at this point in the history
  2. 1 Configuration menu
    Copy the full SHA
    ed6eb46 View commit details
    Browse the repository at this point in the history