Files
meta-st-stm32mp/recipes-core/systemd/systemd-conf_%.bbappend
T
Christophe Priouzeau 8c00c5ebf3 SYSTEMD: watchdog: limit time for shutdown watchdog
Change-Id: Ic855a71f1e96932cfccfe352dab98859d12a1471
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
2023-08-03 12:11:53 +02:00

12 lines
596 B
Plaintext

do_install:append:stm32mpcommon() {
# enable watchdog on systemd configuration
if ${@bb.utils.contains('MACHINE_FEATURES','watchdog','true','false',d)}; then
install -d ${D}${systemd_unitdir}/system.conf.d/
echo "[Manager]" > ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
echo "RuntimeWatchdogSec=32" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
echo "ShutdownWatchdogSec=32" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
echo "RebootWatchdogSec=32" >> ${D}${systemd_unitdir}/system.conf.d/01-watchdog.conf
fi
}