Bug#771172: systemd-sysv-generator does not generate

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Nov 27 22:27:00 GMT 2014


On Thu, Nov 27, 2014 at 09:06:11PM +0100, Salvo Tomaselli wrote:
> > Running "systemctl daemon-reload" is sufficient to run the generator.
> > You don't need to run it by hand and copying the files around.
> I wasn't even aware there was such a thing. <rant>I thought systemd was 
> supposed to be a drop in replacement. Which clearly is not.</rant>
> So I am rather clueless on systemd's usage.
"drop in replacement" is an impossible task. The logic on which systemd
is built is too different to sysvinit. The goal is provide a way to support
well-behaved existing init scripts, possibly with small modifications.

I added a man page upstream for systemd-sysv-generator
(http://cgit.freedesktop.org/systemd/systemd/commit/?id=f509443af5).
It's not very exhaustive, but provides the basic pointers. People who
care about sysv compat will hopefully extend it at some point.

> > That's also true for native services fwiw.
> Oh this explains why I had to reboot after creating a .service file!
Actually you don't have to. Even running systemctl daemon-reload is usually
not necessary, since 'systemctl start xxx.service' will load the unit if
didn't previously know about it.

HTH,
Zbyszek




More information about the Pkg-systemd-maintainers mailing list