1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-04-29 05:04:27 +01:00
Files
operating-system/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-bt-cache.service
Stefan Agner 1a6b7418f0 Improve Bluetooth cache cleanup command (#2906)
Use the find's delete flag to delete the files instead of spanning a
shell for each file.
2023-11-06 11:52:57 +01:00

16 lines
410 B
Desktop File

[Unit]
Description=Remove Bluetooth cache entries older than one week
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7 -delete'
PrivateDevices=yes
PrivateNetwork=yes
PrivateUsers=no
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
MemoryDenyWriteExecute=yes
SystemCallFilter=@default @file-system @basic-io @system-service