[opensuse-factory] systemd: How to enable services?
How can we in the rpm spec files enable or disable systemd services - and do this based on information about the current configuration, e.g. enable ssh only if it's enabled for SysVinit to do. AFAIK Fedora uses triggerun and chkconfig like the following: %triggerun -- avahi < 0.6.26-1 if /sbin/chkconfig avahi-daemon ; then /bin/systemctl enable avahi-daemon.service >/dev/null 2>&1 || : fi For details: http://pkgs.fedoraproject.org/gitweb/?p=avahi.git;a=blob;f=avahi.spec;h=2e9d... How do we want to do this in openSUSE? This should be added to the following page: http://en.opensuse.org/openSUSE:Systemd_status Andreas -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (1)
-
Andreas Jaeger