[Pkg-systemd-maintainers] Bug#714903: .Re: Bug#714903: Bug#722521: Bug#722521: Fails to properly re-enable service on install-remove-install sequence

Michael Biebl biebl at debian.org
Thu Sep 19 00:05:10 BST 2013


found 714903 1.9
thanks

Am 15.09.2013 06:37, schrieb Michael Stapelberg:
> Hi Michael,
> 
> Michael Biebl <biebl at debian.org> writes:
>> Masking the service might be better indeed, especially as systemctl
>> disable will now also forward the request to update-rc.d, which is kinda
>> odd, that the addition of a systemd service changes the behaviour of the
>> SysV init script on remove.
>>
>> Sounds to me, as if we should drop the "disable-on-remove" bits in i-s-h
>> again, and follow up at #714903 whether and how to use mask and what we
>> need to consider when doing that.
> This is done with the following three commits:
> http://anonscm.debian.org/gitweb/?p=collab-maint/init-system-helpers.git;a=commitdiff;h=9c1373f308d77d4dfaf7f644591facbe1e6825c3
> http://anonscm.debian.org/gitweb/?p=collab-maint/init-system-helpers.git;a=commitdiff;h=c419de25e649229caa9fec50deaf73c29fe55f4a
> http://anonscm.debian.org/gitweb/?p=collab-maint/init-system-helpers.git;a=commitdiff;h=34f1de71a363168bb62161f9796eb727df8ab797
> 
> Testing much appreciated! I’ll see whether I can release a new version
> within 24 hours and some reports on whether it works will help a lot

Seems that doesn't work here.
First I tried to do the usual testing with rsyslog from the archive.
That didn't work


root at pluto:~# dpkg -r rsyslog
(Lese Datenbank ... 277049 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von rsyslog ...
rm '/etc/systemd/system/multi-user.target.wants/rsyslog.service'
rm '/etc/systemd/system/syslog.service'
root at pluto:~# cd /etc/
root at pluto:/etc# apt-get install rsyslog
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Vorgeschlagene Pakete:
  rsyslog-mysql rsyslog-pgsql rsyslog-mongodb rsyslog-doc rsyslog-gnutls rsyslog-gssapi rsyslog-relp
Die folgenden NEUEN Pakete werden installiert:
  rsyslog
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 492 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 1.680 kB Plattenplatz zusätzlich benutzt.
[master 52892f8] saving uncommitted changes in /etc prior to apt run
 4 files changed, 1 insertion(+), 3 deletions(-)
 rename logrotate.d/{rsyslog => rsyslog.disabled} (100%)
 delete mode 120000 systemd/system/multi-user.target.wants/rsyslog.service
 delete mode 120000 systemd/system/syslog.service
Laden der Fehlerberichte ... Erledigt
»Found/Fixed«-Informationen werden ausgewertet ... Erledigt
Vormals nicht ausgewähltes Paket rsyslog wird gewählt.
(Lese Datenbank ... 277006 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacken von rsyslog (aus .../rsyslog_7.4.4-1_amd64.deb) ...
Trigger für man-db werden verarbeitet ...
rsyslog (7.4.4-1) wird eingerichtet ...
[master a9a8806] committing changes in /etc after apt run
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename logrotate.d/{rsyslog.disabled => rsyslog} (100%)


I then recompiled with the new dh-systemd. That didn't really fix the issue,
seem like some state files got out of sync. (we need to investigate that)
I purged and re-installed a recompiled package.
That package showed an interesting behaviour on dpkg -r:
root at pluto:/etc# dpkg -r rsyslog
(Lese Datenbank ... 277049 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von rsyslog ...
ln -s '/dev/null' '/etc/systemd/system/multi-user.target.wants/rsyslog.service'
ln -s '/dev/null' '/etc/systemd/system/syslog.service'


As you can see, it masks the symlinks not the actual service. Not surpringly
I then get
root at pluto:/etc# systemctl status rsyslog.service 
rsyslog.service - LSB: enhanced syslogd
   Loaded: loaded (/etc/init.d/rsyslog)
   Active: inactive (dead) since Do 2013-09-19 01:03:13 CEST; 1min 12s ago
 Main PID: 9861 (code=exited, status=0/SUCCESS)
   CGroup: name=systemd:/system/rsyslog.service

Re-opening the bug report, since this needs further work.

Cheers,
Michael






-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20130919/5a70b28a/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list