diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-05-26 14:47:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-05-26 23:52:30 +0200 |
commit | 0e42cbe2541fefaa213eae249ef993a7cfb6367e (patch) | |
tree | 7ad53b20c3d5491f40776366da429b5e1e7eb12c /src/sysv-generator | |
parent | sysv: use structured initialization (diff) | |
download | systemd-0e42cbe2541fefaa213eae249ef993a7cfb6367e.tar.xz systemd-0e42cbe2541fefaa213eae249ef993a7cfb6367e.zip |
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.
Diffstat (limited to 'src/sysv-generator')
-rw-r--r-- | src/sysv-generator/sysv-generator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index a667a8ebad..3ad139b242 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator/sysv-generator.c @@ -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(); |