]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysv: generate warning for every SysV service lacking a native systemd unit
authorLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 12:47:30 +0000 (14:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 21:52:30 +0000 (23:52 +0200)
It's 2020, let's tighten the screws a bit and start warning about
left-over SysV services that still have no native systemd unit file.

src/sysv-generator/sysv-generator.c

index a667a8ebad190bbdec705d0ef6cb0a39162e1147..3ad139b242bbaf28b79a9f566aa4c9303f144929 100644 (file)
@@ -788,6 +788,10 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) {
                         if (!fpath)
                                 return log_oom();
 
+                        log_warning("SysV service '%s' lacks a native systemd unit file. "
+                                    "Automatically generating a unit file for compatibility. "
+                                    "Please update package to include a native systemd unit file, in order to make it more safe and robust.", fpath);
+
                         service = new(SysvStub, 1);
                         if (!service)
                                 return log_oom();