Andrei Borzenkov wrote:
On Tue, Apr 26, 2016 at 9:55 AM, Per Jessen <per@computer.org> wrote:
Andrei Borzenkov wrote:
On Tue, Apr 26, 2016 at 9:16 AM, Per Jessen <per@computer.org> wrote:
If anything, systemd-sysv-convert should be invoked automagically, but
Package has to call it manually (it is done via macros, but these macros must be explicitly included in spec). And those macros are expanded when package is created, so unless it was built for (open)SUSE and using (open)SUSE macros, this tool won't be called.
What happens when it isn't called? I often install the HP Proliant Support Pack which is not specifically openSUSE "compliant", but it works perfectly fine. It has 2-3 init scripts.
It probably simply installs initscript as before without converting it to systemd service. "rpm -q --scripts" is your friend here.
Looking at 'systemd-sysv-convert', it's only about runlevels. It extracts the runlevels and stores them in /var/lib/systemd/sysv-convert/database, that's all AFAICS. I've just tried it - stork2:~ # systemd-sysv-convert --save tdm2 stork2:~ # systemd-sysv-convert --show tdm2 SysV service tdm2 enabled in runlevel 3 at priority 50 SysV service tdm2 enabled in runlevel 5 at priority 50 stork2:~ # systemctl status tdm2 tdm2.service - LSB: Start 3dm2 daemon. Loaded: loaded (/etc/init.d/tdm2) Active: active (running) since Sun 2016-02-28 17:01:02 CET; 1 months 27 days ago Process: 1186 ExecStart=/etc/init.d/tdm2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/tdm2.service ├─1216 /usr/sbin/3dm2 ├─1237 /usr/sbin/3dm2 └─1238 /usr/sbin/3dm2 -- Per Jessen, Zürich (10.0°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org