Files
tmpwatch/tmpwatch-autoclean
Dirk Mueller 824d1201da Accepting request 1117557 from home:mschreiner:branches:Base:System
- Remove tmpwatch.daily cron script, replace it with systemd timer.
- Remove cron as a dependency.
- Add tmpwatch.service, tmpwatch.timer, rename tmpwatch.daily as
  /usr/sbin/tmpwatch-autoclean. The systemd timer/service triggers
  this newly named script.
- This change is related to bsc#1115430.

OBS-URL: https://build.opensuse.org/request/show/1117557
OBS-URL: https://build.opensuse.org/package/show/Base:System/tmpwatch?expand=0&rev=27
2023-10-16 22:18:06 +00:00

18 lines
407 B
Bash

#! /bin/sh
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 10d /tmp
/usr/sbin/tmpwatch "$flags" 30d /var/tmp
for d in /var/cache/man /var/catman; do
[ -d $d ] || continue
for c in cat X11R6/cat local/cat; do
for D in $d/${c}?; do
[ -d $D ] || continue
/usr/sbin/tmpwatch "$flags" -f 30d "$D"
done
done
done