Solution: openstack cannot be restarted or shut down after centos7 upgrade

Source: Internet
Author: User

Solution: openstack cannot be restarted or shut down after centos7 upgrade

The condition for determining the restart EMD Shutdown Process in the newly released yum source upgrade package of centos 7 has changed, which may cause the server to become stuck when it is restarted after centos 7 is upgraded. The judgment of the newly released systemd process is more strict. If some processes do not respond to the SIGTERM signal, the restart may fail. This problem is related to how the business process processes the SIGTERM signal.

Run the yum update systemd (or yum update) command to update the systemd software package to version 219-19.el7. After the reboot package is released, the following page appears, causing the system to be suspended and the system cannot be restarted:

Symptom:

Query version packages:

Solution:

New/etc/systemd/system/rc-local.service and write:

[Unit]Description=/etc/rc.d/rc.local CompatibilityConditionFileIsExecutable=/etc/rc.d/rc.localAfter=network.target[Service]Type=forkingExecStart=/etc/rc.d/rc.local startTimeoutSec=5RemainAfterExit=yes

Back up/etc/systemd/system. conf

cp -a /etc/systemd/system.conf /etc/systemd/system.conf_bak

Modify file

# sed -i 's/#DefaultTimeoutStopSec=90s/DefaultTimeoutStopSec=30s/g' /etc/systemd/system.conf

Reload

# systemctl daemon-reload

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.