found 709780 44-11 retitle 709780 Make systemctl disable|enable work for SysV init scripts found
Am 25.05.2013 18:34, schrieb Vincent Bernat: > ❦ 25 mai 2013 16:25 CEST, Michael Biebl <[email protected]> : > >>>> Yeah, the interface to use for that is >>>> update-rc.d foo disable|enable >>>> >>>>> This does not seem to work with systemd. >>>> >>>> Exactly the same command exists for systemd: >>>> systemctl enable|disable foo.service >>>> >>>> That command creates the relevant symlinks, to enable the service. In >>>> most cases that means creating a symlinks in multi-user.target.wants >>>> which is the equivalent to a symlink in /et/rc?.d/ >>> >>> Well, it does not work for me: >>> >>> $ sudo systemctl disable snmpd.service >>> Failed to issue method call: No such file or directory >> >> Does snmpd ship a native service file. If so, could you attach it >> please? > > No, it does not. Ok, so your issue is not really that systemd does not provide a way to not start a daemon on boot, but you expected systemctl disable to work for a non-native service. In that case, let's reopen and retitle the bug report accordingly. >> Atm systemctl enable|disable does only operate on native .service files. >> Michael Stapelberg has prepared patches to forward such enable requests >> to update-rc.d for SysV services (and vice versa). > > So, I am anticipating your next answer: update-rc.d should work for > systemd. I am used to mangle with symlinks and I have tried to change > them for runlevel 3 (default runlevel for Debian) and 5 (default > runlevel for Redhat) with no luck. I will try update-rc.d instead (which > change for all runlevels except 0 and 6) and come back here if it > doesn't work. Well, the patch for update-rc.d forwarding the enable|disable request to systemd should have landed in 2.88dsf-41+jessie1 The patch for systemd on the other hand to make systemctl forward the request to update-rc.d is not yet applied. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

