[opensuse-factory] rc* symlinks for systemd native services
Hi, (open)SUSE always had those rc* symlinks (e.g. rcvsftpd) as convenience feature to easily run init scripts without relying on fancy bash completions. As long as the service still has a sysv init script using the rc link still works fine as the init script magically redirects to systemd. Native service files however lack such feature and systemctl somehow feels clumsy to me. So I added a hack (now in Factory) to /sbin/service so it can act as rc* wrapper for both sysv init scripts and systemd units. IOW if your package has a service foo: /lib/systemd/system/foo.service then package a symlink like this: /usr/sbin/rcfoo -> /sbin/service Now rcfoo works as expected again. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-07-04 14:29, Ludwig Nussel wrote:
Hi,
(open)SUSE always had those rc* symlinks (e.g. rcvsftpd) as convenience feature to easily run init scripts without relying on fancy bash completions. As long as the service still has a sysv init script using the rc link still works fine as the init script magically redirects to systemd. Native service files however lack such feature and systemctl somehow feels clumsy to me. So I added a hack (now in Factory) to /sbin/service so it can act as rc* wrapper for both sysv init scripts and systemd units. IOW if your package has a service foo:
Thanks. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/0vZIACgkQIvFNjefEBxomBgCfeKwZmJ8E2S5r0GgTfIifulqB AI0AoMKZaGNJxM17Do1DEOqviSf6j3Ap =E7W5 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Ludwig Nussel wrote:
Hi,
(open)SUSE always had those rc* symlinks (e.g. rcvsftpd) as convenience feature to easily run init scripts without relying on fancy bash completions. As long as the service still has a sysv init script using the rc link still works fine as the init script magically redirects to systemd. Native service files however lack such feature and systemctl somehow feels clumsy to me. So I added a hack (now in Factory) to /sbin/service so it can act as rc* wrapper for both sysv init scripts and systemd units. IOW if your package has a service foo:
/lib/systemd/system/foo.service
then package a symlink like this: /usr/sbin/rcfoo -> /sbin/service
Now rcfoo works as expected again.
Cool. Thanks for making systemd feeling more sane. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jschrod@acm.org -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Carlos E. R.
-
Joachim Schrod
-
Ludwig Nussel