[Pkg-samba-maint] Bug#640668: samba: Updated if-up.d script to function under systemd

Steve Langasek vorlon at debian.org
Mon Sep 12 10:01:31 UTC 2011

Hi Sam,

On Tue, Sep 06, 2011 at 01:40:34PM +0100, Sam Morris wrote:
> When systemd is installed, the behaviour of '/etc/init.d/samba status'
> changes (systemd changes the LSB init functions to launch services via
> systemctl rather than directly) in a way that breaks the if-up.d script.

> I've modified the script to get it to work again; see below.

Why should this not be fixed in systemd?  I don't think it's appropriate for
the status_of_proc() function to give different output under systemd than
under sysvinit and to require a package that isn't aware of systemd at all
to cope with such divergence.

In Ubuntu, the Samba package currently avoids status_of_proc() entirely
because we know that we will *always* be using upstart on Ubuntu, so we can
just invoke the 'status' command directly.  But this argument does not apply
in Debian, and I would not like to see the init script in Debian have to
account for differing init systems.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20110912/5475d672/attachment.pgp>

More information about the Pkg-samba-maint mailing list