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.
This commit is contained in:
parent
470ab28d07
commit
0e42cbe254
|
@ -788,6 +788,10 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) {
|
||||||
if (!fpath)
|
if (!fpath)
|
||||||
return log_oom();
|
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);
|
service = new(SysvStub, 1);
|
||||||
if (!service)
|
if (!service)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
Loading…
Reference in New Issue