Skip to content

Commit 0e42cbe

Browse files
committed
sysv: generate warning for every SysV service lacking a native systemd unit
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.
1 parent 470ab28 commit 0e42cbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sysv-generator/sysv-generator.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,10 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) {
788788
if (!fpath)
789789
return log_oom();
790790

791+
log_warning("SysV service '%s' lacks a native systemd unit file. "
792+
"Automatically generating a unit file for compatibility. "
793+
"Please update package to include a native systemd unit file, in order to make it more safe and robust.", fpath);
794+
791795
service = new(SysvStub, 1);
792796
if (!service)
793797
return log_oom();

0 commit comments

Comments
 (0)