mirror of
https://github.com/systemd/systemd
synced 2024-10-07 00:30:59 +00:00
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)
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue