centos 7 can't reboot hung at a stop job
centos 7 can't reboot hung at a stop job
Hi experts,
when I want to reboot centos7, the system cost about 30 minutes to stop, and I noticed the message on my console is below:
A stop job is running for /etc/rc.d/rc.local Compatibility (29min 39s / no limit)
How can I debug this issue?
when I want to reboot centos7, the system cost about 30 minutes to stop, and I noticed the message on my console is below:
A stop job is running for /etc/rc.d/rc.local Compatibility (29min 39s / no limit)
How can I debug this issue?
Re: centos 7 can't reboot hung at a stop job
After waiting 30 more minutes, the system reboot finally.
Re: centos 7 can't reboot hung at a stop job
Anyone meet the similar problem before?
Re: centos 7 can't reboot hung at a stop job
What are you running from /etc/rc.local?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 1522
- Joined: 2014/05/21 20:16:00
- Location: Central New York, USA
Re: centos 7 can't reboot hung at a stop job
I have two laptops doing the same thing while trying to unmount/disconnect nfs shares. It seems to have started after a recent update.
Re: centos 7 can't reboot hung at a stop job
I had, never found a solution....meilei007 wrote:Anyone meet the similar problem before?
Best ready-to-fly drone - Phantom 4 pro (review). Love it.
Re: centos 7 can't reboot hung at a stop job
A service which I want to start on boot.TrevorH wrote:What are you running from /etc/rc.local?
Re: centos 7 can't reboot hung at a stop job
I have resolved this problem by add a systemd service to stop my service before reboot.alex80 wrote:I had, never found a solution....meilei007 wrote:Anyone meet the similar problem before?
Re: centos 7 can't reboot hung at a stop job
Can you comment on the details to your solution to stop the service before rebooting?
Thanks
Thanks
-
- Posts: 5
- Joined: 2017/11/24 03:32:05
Re: centos 7 can't reboot hung at a stop job
Dears,
I encountered same problem as you. The solution of updating the default stopserviceSec counter of system.conf from unlimited to xx seconds doesn't work in my case(Centos 7 ).
The root cause is that the systemd can not stop /etc/rc.d/rc.local in seconds.
After times failure, the problem was fixed by emptying the commands that running in /etc/rc.d/rc.local. Alternatively, to create xxxx.service(xxxx is the command name that you run in rc.local.) in /etc/systemd/system/xxxx.service
run the systemctl enable xxxx.service / systemctl start xxxx.service
BR
Shan
I encountered same problem as you. The solution of updating the default stopserviceSec counter of system.conf from unlimited to xx seconds doesn't work in my case(Centos 7 ).
The root cause is that the systemd can not stop /etc/rc.d/rc.local in seconds.
After times failure, the problem was fixed by emptying the commands that running in /etc/rc.d/rc.local. Alternatively, to create xxxx.service(xxxx is the command name that you run in rc.local.) in /etc/systemd/system/xxxx.service
run the systemctl enable xxxx.service / systemctl start xxxx.service
BR
Shan
Last edited by sc.shan@yahoo.com on 2017/11/27 05:53:04, edited 1 time in total.