❦ 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.
> 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.
--
Localise input and output in subroutines.
- The Elements of Programming Style (Kernighan & Plauger)
pgpfoSFYT3NhR.pgp
Description: PGP signature

