[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-05 Thread Martin Pitt
As explained in https://bugs.debian.org/777113 I want to fix this in a more generic way in service, invoke-rc.d, and /lib/lsb/init- functions.d/40-systemd. ** Bug watch added: Debian Bug tracker #777113 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777113 ** Package changed: samba (Ubuntu)

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
Tim: Can you please revert the change to service (apt-get install --reinstall sysvinit-utils) and test the systemd in https://launchpad.net/~pitti/+archive/ubuntu/ppa ? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu.

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1417010 Title: Reloading services can result in a deadlock under systemd To manage notifications about this bug

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
** Summary changed: - systemd init gets stuck reloading smbd.service + Reloading services can result in a deadlock under systemd -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1417010

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
Actually, please forget the PPA; after further discussions with the Debian and upstream systemd maintainers we have settled for a different solution. This now works for me with samba and postfix. Can you please replace /usr/sbin/service with this script and confirm that it also fixes your boot

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Tim
I tested the updated service scripts and indeed does also fix my boot hang! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1417010 Title: Reloading services can result in a deadlock

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
For keeping references: This is another case like https://bugs.debian.org/635777 and https://bugs.debian.org/624599 just a bit more general. ** Bug watch added: Debian Bug tracker #635777 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635777 ** Bug watch added: Debian Bug tracker #624599

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Bug Watch Updater
** Changed in: samba (Debian) Status: Unknown = Fix Committed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1417010 Title: Reloading services can result in a deadlock under

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
** Changed in: systemd (Ubuntu) Status: Triaged = In Progress ** Changed in: systemd (Ubuntu) Milestone: None = ubuntu-15.03 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu.

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
I pondered this for a while; quite naturally there is no perfect solution as synchronous reload/restart requests in hooks which may be part of a systemd unit transaction are fundamentally against the design of systemd. But this patch now seems to fix this bug and the three referenced Debian bugs,

[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
This is another patch I experimented with which helps with a different kind of deadlock problem. But with the previous patch all of the practically reported issues are already covered, so I just keep it here in case we need it in the future. ** Patch added: WIP: manager: avoid deadlocks for