How to Speed Up Reboot in CoreELEC NG? systemd.conf Override Not Working

how to edit the etc/systemd/system.conf ?

my homatics box use usb3.0 port for ssd sata ce.

everything work great it just sometime when try to restart the ce or reboot to android tv (reboot to emmc) it just took too long to reboot.

i had created a file in /.config/system.d/system.conf

and added

[Manager]
DefaultTimeoutStartSec=5s
DefaultTimeoutStopSec=5s
DefaultTimeoutAbortSec=5s
DefaultDeviceTimeoutSec=5s
ShutdownWatchdogSec=0

but after reboot it just dont change the second

systemctl show | grep Timeout

DefaultTimeoutStartUSec=1min 30s
DefaultTimeoutStopUSec=1min 30s
DefaultTimeoutAbortUSec=1min 30s
DefaultDeviceTimeoutUSec=1min 30s

on arch linux i can edit the /etc/systemd/system.conf but with Coreelec it dont work cos read only.

box : homatics box r 4k plus 3717 firmware atv14
os : Ce-ng

You do need this change only for mount service?

1 Like

i want to make coreelec to not wait longer time when reboot ce or reboot to android tv.

i think by modify the /etc/systemd/system.conf can force coreelec to not wait longer to to kill a procees and faster execute reboot

DefaultTimeoutStopSec=90s to 5s maybe.

Seems you can’t do that.

That’s why I’m asking if only disk mounted is the problem? Because you mention you have disk attached.

i use sata ssd to usb 3.0 casing when installing coreelec ng and connected it at the box usb 3.0 port.

is there a workaround how to override the systemd default value ?

last time when i change the ce swappiness to 0 or 1 it worked using /storage/.config/sysctl.d/swap.conf. cat /proc/sys/vm/swappiness

i thought by creating a /storage/.config/system.d/system.conf and added

[Manager]
DefaultTimeoutStopSec=5s

will symlink to the ce /etc/systemd/system.conf or user.conf

will do the same but it dont work for me.

Why don’t you answer my question first if you want some help.

im sorry for my ignorant earlier as i dont understand the question cos im not well verse with coreelec system and linux technical fully.

“You do need this change only for mount service?”

to be honest to you i really dont know this “mount” thing.

"Seems you can’t do that.

That’s why I’m asking if only disk mounted is the problem? Because you mention you have disk attached."

i guess the disk mount you said = usb hard drive connected to usb 3.0 port to boot to os ? if yes then the disk mounted is the problem.

Then copy mount service and change value there.

cp /usr/lib/systemd/system/udevil-mount@.service /storage/.config/system.d/

Modify /storage/.config/system.d/udevil-mount@.service and add TimeoutStopSec under [Service].

But I’m sure there is a reason why this service needs long time to stop. If you will make time too small maybe some data corruption will occur.

1 Like

Hi @vpeter,

Thanks for the suggestion!

Appreciate the help and your caution about potential data loss. I’ll test with a moderate timeout (like 10s,30s) and monitor the logs.

Thanks again

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.