Am 12.01.2014 13:53, schrieb Michael Biebl:

> This somehow smells like the same bug as [1] or at least related, i.e.
> systemd getting confused when we mess around with the symlinks.       
> (In case of rsyslog we basically go the other direction: the symlinks
> are no longer shipped in the package but created on install time via
> dh-systemd)
> I wonder if there is a way to address this directly in systemd.
> 
> Michael
> 
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724796

In [1] I suggested to use "kill $(cat /run/rsyslogd.pid)" in postinst
(same reason, to minimize downtime).

We could apply the same workaround to NM:
kill $(cat /var/run/NetworkManager/NetworkManager.pid)
or a less hacky way like
start-stop-daemon --stop --retry 5 --quiet --pidfile
/var/run/NetworkManager/NetworkManager.pid --exec /usr/sbin/NetworkManager
(directly copied from the SysV init script)

Both options (invoke-rc.d stop in preinst, manual stop in postinst)
aren't pretty.

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to