On Fri, Apr 26, 2002 at 10:20:17AM +0700, ivan demakov wrote: id>> SERVER cant dbzinit /var/lib/news/history No such file or directory id>> что бы это могло быть? > так что. никто не знает, в чем дело?
Дело в том, что у тебя отсутствуют/повреждены файлы /var/lib/news/history* и тебе нужно пересоздать их. При установке это делается так: -------------------/var/lib/dpkg/info/inn2.postinst--------------------------- #! /bin/sh case "$1" in configure) # if we made copies in the preinst, restore them now and clean up if [ -f /var/lib/news/2.3.0-1-was-broken.tar ] then (cd /var/lib/news ; tar xf 2.3.0-1-was-broken.tar ) rm -f /var/lib/news/2.3.0-1-was-broken.tar fi # if no active file exists, install default version if [ ! -f /var/lib/news/active ]; then echo "installing initial content for /var/lib/news/active" install -o news -g news -m 644 /usr/share/doc/inn2/examples/active \ /var/lib/news/active fi # make sure a few key groups exist if ! grep -q '^control' /var/lib/news/active ; then echo "adding control group to /var/lib/news/active" echo "control 0000000000 0000000000 n" >> /var/lib/news/active fi if ! grep -q '^control.cancel' /var/lib/news/active ; then echo "adding control.cancel group to /var/lib/news/active" echo "control.cancel 0000000000 0000000000 n" >> /var/lib/news/active fi if ! grep -q '^junk' /var/lib/news/active ; then echo "adding junk group to /var/lib/news/active" echo "junk 0000000000 0000000000 y" >> /var/lib/news/active fi # if no newsgroups file exists, install default version if [ ! -f /var/lib/news/newsgroups ]; then echo "installing initial content for /var/lib/news/newsgroups" install -o news -g news -m 644 /usr/share/doc/inn2/examples/newsgroups \ /var/lib/news/newsgroups fi # if no history database exists, build one if [ ! -f /var/lib/news/history.dir ]; then > echo -n "building history database in /var/lib/news... " > cd /var/lib/news > /usr/lib/news/bin/makehistory > /usr/lib/news/bin/makedbz -i > mv history.n.dir history.dir > mv history.n.hash history.hash > mv history.n.index history.index > chown news.news history* ; chmod 664 history* > echo "done" fi # make sure active.times exists and has right owner/group/perms touch /var/lib/news/active.times chown news.news /var/lib/news/active.times chmod 0644 /var/lib/news/active.times # make sure the backoff directory exists mkdir -p /var/lib/news/backoff chown news.news /var/lib/news/backoff chmod 0775 /var/lib/news/backoff # must have an alias for user usenet, point it to root by default if [ -f /etc/aliases ] && ! grep -q '^usenet:' /etc/aliases then echo "adding alias for pseudo-user usenet to /etc/aliases" echo "usenet: root" >> /etc/aliases if [ -x /usr/bin/newaliases ]; then /usr/bin/newaliases fi fi # make sure typical log files exist, and can be rotated mkdir -p /var/log/news/OLD ; chown news.news /var/log/news/OLD ( cd /var/log/news ; touch news.crit news.err news.notice ) ( cd /var/log/news ; chown news news.crit news.err news.notice ) # squelch initial noise in email if this isn't present ( cd /var/lib/news ; touch .news.daily ; chown news.news .news.daily ) ;; abort-upgrade) # Back out of an attempt to upgrade this package FROM THIS VERSION # to version $2. Undo the effects of "prerm upgrade $2". : ;; abort-remove) if test "$2" != in-favour; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 1 fi # Back out of an attempt to remove this package, which was due to # a conflict with package $3 (version $4). Undo the effects of # "prerm remove in-favour $3 $4". : ;; abort-deconfigure) if test "$2" != in-favour -o "$5" != removing; then echo "$0: undocumented call to \`postinst $*'" 1>&2 exit 1 fi # Back out of an attempt to deconfigure this package, which was # due to package $6 (version $7) which we depend on being removed # to make way for package $3 (version $4). Undo the effects of # "prerm deconfigure in-favour $3 $4 removing $6 $7". : ;; *) echo "$0: didn't understand being called with \`$1'" 1>&2 exit 1;; esac # punt allowing debhelper's dh_installinit to manage this, so that we can # conditionalize the start call to the init.d fragment to prevent installs # from failing on mis-configured systems. update-rc.d inn2 defaults >/dev/null if [ "$1" = "configure" ]; then if [ -d /usr/doc -a ! -e /usr/doc/inn2 -a -d /usr/share/doc/inn2 ]; then ln -sf ../share/doc/inn2 /usr/doc/inn2 fi fi # make sure we can determine the FQDN, since innd won't launch if we can't hostname --fqdn > /dev/null 2>&1 RESULT=$? if [ "$RESULT" = "0" ] then /etc/init.d/inn2 start else echo "Not starting innd. The daemon needs to be able to determine" echo "the name of this machine, and your /etc/hosts and/or DNS config" echo "is apparently not allowing this to happen. After you have fixed" echo "things so that 'hostname --fqdn' returns a reasonable value, you" echo "can start the daemon by running '/etc/init.d/inn2 start'." echo "" echo -n "Hit Enter key to continue...." read junk fi exit 0 ------------------------------------------------------------------------------ PS: Users never read manuals (c) Gert Doering /evk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]