[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2156: syslogd postinst script disables syslogd

Package: syslogd
Version: 1.2-15

During some upgrades, the postinst script for the syslogd package
fails to install symlinks in /etc/rc?.d. I think this happens when
links called S20sysklogd already exist. In this case, update-rc.d
complains but returns exit code 0 without creating the links. Then the
rm command removes the old links, leaving no symlinks to start
syslogd. One way round this would be to put the rm command before the
update-rc.d command.

The postinst script contains:

  #! /bin/sh

  update-rc.d sysklogd defaults 10 90 >/dev/null

  # Purge the files of the old "syslog" package, it's now called "sysklog".

  rm -f /etc/cron.weekly/syslogd /etc/init.d/syslogd \
	  /etc/rc[0-6].d/[SK]20syslogd \

Neil Turton
| Neil Turton, Assistant computer officer | Snail Mail to:       |
|                                         |  Churchill college,  |
| e-mail: N.D.Turton@chu.cam.ac.uk        |  Cambridge. CB3 0DS. |
| GCM(M) d H s+:- !g p0>+ !au(-) a- w+ v C+++@ UL++++$(+++) P+   |
|   L+++ 3- E++ N-(+) K- W--- M-- V po Y+ t-- 5 !j R- G? !tv(-)  |
|   b+ D+ B? e+++ u(*) h-- f !r>+++ n+ y?                        |

Reply to: