System stuck when shutdown

Share your ideas, questions or suggestions with us here.
hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

System stuck when shutdown

Post by hunghung » Sat Oct 19, 2019 2:45 am

It's stuck at Saving dependencies cache... My keyboard was already turned off but other part of the system still on. It stucked for 30 mins so I decided to hit reset. I'm posting this from MX Linux, don't know if my GhostBSD installation would boot up properly after this incident or just broken :(

User avatar
ericbsd
Developer
Posts: 1435
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 53 times

Re: System stuck when shutdown

Post by ericbsd » Sat Oct 19, 2019 9:01 am

It should be fine, to boot back in.

hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

Re: System stuck when shutdown

Post by hunghung » Mon Oct 28, 2019 2:39 pm

ericbsd wrote:
Sat Oct 19, 2019 9:01 am
It should be fine, to boot back in.
Yes, it was fine. But with OpenRC shutdown is slower than plain FreeBSD and sometime unreliable as it just stucks at Saving dependencies cache... I don't know why it is but I still appreciate your works to modernize FreeBSD's init system :)

User avatar
ericbsd
Developer
Posts: 1435
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 53 times

Re: System stuck when shutdown

Post by ericbsd » Mon Oct 28, 2019 3:21 pm

hunghung wrote:
Mon Oct 28, 2019 2:39 pm
ericbsd wrote:
Sat Oct 19, 2019 9:01 am
It should be fine, to boot back in.
Yes, it was fine. But with OpenRC shutdown is slower than plain FreeBSD and sometime unreliable as it just stucks at Saving dependencies cache... I don't know why it is but I still appreciate your works to modernize FreeBSD's init system :)
I think caching was added to speed up the boot with OpenRC I would probably test the boot without caching to see how much of a difference that it makes.
These users thanked the author ericbsd for the post:
hunghung (Mon Nov 04, 2019 12:13 pm)
Rating: 50%

hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

Re: System stuck when shutdown

Post by hunghung » Mon Nov 04, 2019 12:17 pm

ericbsd wrote:
Mon Oct 28, 2019 3:21 pm
I think caching was added to speed up the boot with OpenRC I would probably test the boot without caching to see how much of a difference that it makes.
Today it stucked again. I've to reset manually and it booted OK after that. Not a serious bug but it's annoying, though :)

User avatar
ericbsd
Developer
Posts: 1435
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 53 times

Re: System stuck when shutdown

Post by ericbsd » Mon Nov 04, 2019 12:59 pm

You can try:

Code: Select all

rc-update delete savecache
that will remove save cache

hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

Re: System stuck when shutdown

Post by hunghung » Tue Nov 05, 2019 3:24 am

ericbsd wrote:
Mon Nov 04, 2019 12:59 pm
You can try:

Code: Select all

rc-update delete savecache
that will remove save cache
What does it mean?

Code: Select all

 * rc-update: service `savecache' is not in the runlevel `default'

hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

Re: System stuck when shutdown

Post by hunghung » Tue Nov 05, 2019 5:44 am

The command above didn't work. It's still started with Caching service dependencies... and stopped with Saving service dependencies...

User avatar
ericbsd
Developer
Posts: 1435
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 53 times

Re: System stuck when shutdown

Post by ericbsd » Tue Nov 05, 2019 8:05 am

Oh sorry I forgot the last part

Code: Select all

sudo rc-update delete savecache shutdown

hunghung
Posts: 55
Joined: Tue Sep 24, 2019 1:31 pm
Has thanked: 2 times
Been thanked: 1 time

Re: System stuck when shutdown

Post by hunghung » Tue Nov 05, 2019 9:02 am

ericbsd wrote:
Tue Nov 05, 2019 8:05 am
Oh sorry I forgot the last part

Code: Select all

sudo rc-update delete savecache shutdown
This command worked. But how to rollback it? :)

Post Reply