blob: 9647b1dbb9df64639a89a36511128e1ffa0a2c03 (
plain)
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
|
#!/bin/sh
#
# $NetBSD: innd.sh,v 1.6 1999/07/29 20:27:20 tron Exp $
#
if [ -x @@PREFIX@@/libexec/inn/rc.news -a -s @@INN_DATA_DIR@@/db/active ];
then
su news -c @@PREFIX@@/libexec/inn/rc.news >/dev/null
if [ ! -f @@PREFIX@@/etc/nntp/server ]
then
hostname >@@PREFIX@@/etc/nntp/server
fi
if [ ! -f @@PREFIX@@/etc/nntp/domainname ]
then
set - X `grep -w ^fromhost: @@INN_DATA_DIR@@/etc/inn.conf | head -1`
if [ $# -eq 3 ]
then
echo $3 >@@PREFIX@@/etc/nntp/domainname
fi
fi
echo -n ' innd'
fi
exit 0
|