File: process

package info (click to toggle)
gup 0.5.8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 188 kB
  • ctags: 164
  • sloc: ansic: 1,571; sh: 188; makefile: 58
file content (21 lines) | stat: -rwxr-xr-x 435 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# This script handles the inbound newsgroup update requests

gup=/var/lib/gup

# don't run the script if gup is not configured
if [ ! -f $gup/default/global.header ]; then
  echo "ERROR: gup is not configured"
  exit 69		# EX_UNAVAILABLE
fi

if [ -f /etc/gup.headers ]; then
  OPTM="-m /etc/gup.headers"
fi

# Run the group update program
# Should not return
exec /usr/lib/gup/gup $OPTM -d $gup -l /var/log/gup/log

exit 69