File: services

package info (click to toggle)
userv-utils 0.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 556 kB
  • sloc: ansic: 2,456; perl: 1,297; makefile: 248; sh: 99
file content (22 lines) | stat: -rw-r--r-- 590 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
22
#
# Every user's newsrc is checked by the newsrc-listgroups program
# and if it hasn't got too many groups in it, they will be fetched.
#
# The service should spit out a list of legal newsgroup names,
# and will always be invoked by something in group news.

reset
no-set-environment
suppress-args
ignore-fd 0

if ! glob calling-group news
	error Sorry (caller).
fi
if ! grep service-user-shell /etc/shells
	message Warning - newsrc-listgroups for user whose shell not in shells
	execute /bin/true
	quit
fi

execute /usr/local/lib/news/feed+read/newsrc-listgroups /etc/news/nntp-merge.conf