Page 1 of 2

System stuck when shutdown

Posted: Sat Oct 19, 2019 2:45 am
by hunghung
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 :(

Re: System stuck when shutdown

Posted: Sat Oct 19, 2019 9:01 am
by ericbsd
It should be fine, to boot back in.

Re: System stuck when shutdown

Posted: Mon Oct 28, 2019 2:39 pm
by hunghung
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 :)

Re: System stuck when shutdown

Posted: Mon Oct 28, 2019 3:21 pm
by ericbsd
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.

Re: System stuck when shutdown

Posted: Mon Nov 04, 2019 12:17 pm
by hunghung
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 :)

Re: System stuck when shutdown

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

Code: Select all

rc-update delete savecache
that will remove save cache

Re: System stuck when shutdown

Posted: Tue Nov 05, 2019 3:24 am
by hunghung
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'

Re: System stuck when shutdown

Posted: Tue Nov 05, 2019 5:44 am
by hunghung
The command above didn't work. It's still started with Caching service dependencies... and stopped with Saving service dependencies...

Re: System stuck when shutdown

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

Code: Select all

sudo rc-update delete savecache shutdown

Re: System stuck when shutdown

Posted: Tue Nov 05, 2019 9:02 am
by hunghung
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? :)