Stop Hand-Crafting /run and /tmp Trees: Practical systemd-tmpfiles on Linux
Stop Hand-Crafting /run and /tmp Trees: Practical systemd-tmpfiles on Linux Most Linux hosts already run systemd-tmpfiles on every boot. Packages drop snippets under /usr/lib/tmpfiles.d/, the early boot units create volatile trees under /run and friends, and a timer later ages junk out of /tmp and /var/tmp. Operators still keep reinventing the same work with ad-hoc shell: mkdir -p /var/lib/myapp/cache chown myapp:myapp /var/lib/myapp/cache chmod 0750 /var/lib/myapp/cache find /var/lib/myapp/cache -mtime +7 -delete That works until the next image rebuild, the next package update that races your
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in