File: process

package info (click to toggle)
gup 0.5.13
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 188 kB
  • ctags: 168
  • sloc: ansic: 1,609; sh: 213; makefile: 57
file content (26 lines) | stat: -rwxr-xr-x 552 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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

# you can use this file to override the default paths
if [ -f /etc/gup.paths ]; then
  . /etc/gup.paths
fi

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

exit 69