centos 7 can't reboot hung at a stop job

General support questions
meilei007
Posts: 9
Joined: 2015/08/04 07:54:36

centos 7 can't reboot hung at a stop job

Post by meilei007 » 2016/04/16 09:22:03

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?

meilei007
Posts: 9
Joined: 2015/08/04 07:54:36

Re: centos 7 can't reboot hung at a stop job

Post by meilei007 » 2016/04/16 09:37:12

After waiting 30 more minutes, the system reboot finally.

meilei007
Posts: 9
Joined: 2015/08/04 07:54:36

Re: centos 7 can't reboot hung at a stop job

Post by meilei007 » 2016/04/20 09:25:26

Anyone meet the similar problem before?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: centos 7 can't reboot hung at a stop job

Post by TrevorH » 2016/04/20 09:26:23

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

lightman47
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

Post by lightman47 » 2016/04/20 11:50:02

I have two laptops doing the same thing while trying to unmount/disconnect nfs shares. It seems to have started after a recent update.
:?

alex80
Posts: 1
Joined: 2016/04/17 17:35:46

Re: centos 7 can't reboot hung at a stop job

Post by alex80 » 2016/04/20 12:00:11

meilei007 wrote:Anyone meet the similar problem before?
I had, never found a solution....
Best ready-to-fly drone - Phantom 4 pro (review). Love it.

meilei007
Posts: 9
Joined: 2015/08/04 07:54:36

Re: centos 7 can't reboot hung at a stop job

Post by meilei007 » 2016/04/21 02:05:08

TrevorH wrote:What are you running from /etc/rc.local?
A service which I want to start on boot.

meilei007
Posts: 9
Joined: 2015/08/04 07:54:36

Re: centos 7 can't reboot hung at a stop job

Post by meilei007 » 2016/04/21 02:05:54

alex80 wrote:
meilei007 wrote:Anyone meet the similar problem before?
I had, never found a solution....
I have resolved this problem by add a systemd service to stop my service before reboot.

m0topilot
Posts: 1
Joined: 2017/04/13 18:06:21

Re: centos 7 can't reboot hung at a stop job

Post by m0topilot » 2017/04/13 18:10:14

Can you comment on the details to your solution to stop the service before rebooting?

Thanks

sc.shan@yahoo.com
Posts: 5
Joined: 2017/11/24 03:32:05

Re: centos 7 can't reboot hung at a stop job

Post by sc.shan@yahoo.com » 2017/11/24 04:11:52

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
Last edited by sc.shan@yahoo.com on 2017/11/27 05:53:04, edited 1 time in total.

Post Reply