systemd: add a usercache watchdog to purge files when it gets too big

This commit is contained in:
spycat88
2025-10-05 18:43:31 +01:00
parent 487cf52a7d
commit 2d4007cb68
3 changed files with 2 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ post_makeinstall_target() {
cp ${PKG_DIR}/scripts/systemd-machine-id-setup ${INSTALL}/usr/bin
cp ${PKG_DIR}/scripts/userconfig-setup ${INSTALL}/usr/bin
cp ${PKG_DIR}/scripts/usercache-setup ${INSTALL}/usr/bin
cp ${PKG_DIR}/scripts/usercache-watchdog ${INSTALL}/usr/bin
mkdir -p ${INSTALL}/usr/sbin
cp ${PKG_DIR}/scripts/network-base-setup ${INSTALL}/usr/sbin

View File

@@ -7,6 +7,7 @@ Before=automount.service autostart.service
[Service]
Type=oneshot
ExecStart=/usr/bin/usercache-setup
ExecStartPost=/bin/sh -c '/usr/bin/usercache-watchdog &'
RemainAfterExit=yes
[Install]