On Fri, 06 Feb 2015 15:49:17 +0200 Faidon Liambotis <paravoid@debian.org> wrote:<br>> reopen 775795<br>> thanks<br>> <br>> On 02/01/15 01:03, Gaudenz Steinlin wrote:<br>> > I created a patch to use /usr/sbin/service as suggested earlier in this<br>> > report to start/stop/status/restart services on Debian. I'm a bit<br>> > reluctant to just NMU puppet and would prefer if one of the maintainers<br>> > and/or Faidon could have a look at my patch first. If you approve I can<br>> > then do the NMU if you are short on time.<br>> ><br>> > I tested the patch locally and as far as I can see it works fine with<br>> > systemd and does call the right command. I don't have a system with<br>> > system V handy to test on.<br>> <br>> Apologies, it seems like I didn't review this on time...<br>> <br>> This seems like a nice approach for status/start/stop/restart but <br>> unfortunately doesn't address enabled?/enable/disable at all. For <br>> starters, puppet seems to call update-rc.d with "defaults", not <br>> "enable". Even "enable", though, does not seem to be sufficient for <br>> systemd-only service files :(<br>> <br>> Try this:<br>> # cp /etc/systemd/system/ssh.service /etc/systemd/system/test.service<br>> # systemctl daemon-reload<br>> # update-rc.d -f test defaults<br>> update-rc.d: error: initscript does not exist: /etc/init.d/test<br>> # update-rc.d -f test enable<br>> update-rc.d: error: cannot find a LSB script for test<br>> <div><br></div><div>While an error is shown, is enable actually enabling the systemd service or no?</div><div><br>> enabled? is similarly broken: it calls invoke-rc.d --query, which <br>> returns 105 for test.service and puppet handles 105 by proceeding to <br>> check for symlinks under /etc/rc*.d/...</div><div>> </div><div>> Finally, self.instances is also broken, as it just lists /etc/init.d <br>> init files. The systemd provider calls "systemctl list-unit-files --type <br>> service --full --all" instead.</div><div><br></div><div>Are there any packages that only have systemd services?</div><div><br>Cheers,</div><div>--</div><div>Cameron Norman</div>