File: sf_cleanup

package info (click to toggle)
sendfile 2.1-8.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,232 kB
  • ctags: 680
  • sloc: ansic: 11,722; sh: 2,443; perl: 228; makefile: 132; java: 36
file content (13 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# deletes old or corrupted files in sendfile spool directories which are expired
# see /usr/local/etc/sendfile.cf for settings

cd `sendfile -qW=spool` || exit 1

for i in *
do
  if [ -d $i ]; then 
    sendfile -d 'hau wech die Scheisse!' $i@127.0.0.1 2>/dev/null
  fi
done