[systemd-devel] [PATCH] sysv-generator: Skip init scripts for existing native services

Michael Biebl mbiebl at gmail.com
Wed Feb 4 13:08:19 PST 2015


2015-02-04 22:01 GMT+01:00 Lennart Poettering <lennart at poettering.net>:
>> But if you have a native unit, I think it's rather unexpected if you
>> disable it with systemctl, enable it in sysv, but still get it
>> started.
>
> I'd claim the opposite. Let's say you have foobar.rpm installed in one
> version that only carried a sysvinit script. Now you upgrade it to a
> version that has a service file. The fact that it was enabled
> should not change...

It should be the packages duty, to properly enable the unit on
upgrades, depending on the sysv state.

Take your example and cosider one day you drop the sysv init script as
you only want to continue shipping the native service file.
Do you want to have the service suddenly be disabled now?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list