mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
systemd: add a usercache watchdog to purge files when it gets too big
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
projects/ROCKNIX/packages/sysutils/systemd/scripts/usercache-watchdog
Executable file
BIN
projects/ROCKNIX/packages/sysutils/systemd/scripts/usercache-watchdog
Executable file
Binary file not shown.
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user