summaryrefslogtreecommitdiffstats
path: root/src/sysv-generator/sysv-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysv-generator/sysv-generator.c')
-rw-r--r--src/sysv-generator/sysv-generator.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 42aa123de6..ea5f47321c 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -4,6 +4,8 @@
#include <stdio.h>
#include <unistd.h>
+#include "sd-messages.h"
+
#include "alloc-util.h"
#include "dirent-util.h"
#include "exit-status.h"
@@ -758,9 +760,16 @@ 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);
+ log_struct(LOG_WARNING,
+ LOG_MESSAGE("SysV service '%s' lacks a native systemd unit file. "
+ "%s Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it safe, robust and future-proof. "
+ "%s This compatibility logic is deprecated, expect removal soon. %s",
+ fpath,
+ special_glyph(SPECIAL_GLYPH_RECYCLING),
+ special_glyph(SPECIAL_GLYPH_WARNING_SIGN), special_glyph(SPECIAL_GLYPH_WARNING_SIGN)),
+ "MESSAGE_ID=" SD_MESSAGE_SYSV_GENERATOR_DEPRECATED_STR,
+ "SYSVSCRIPT=%s", fpath,
+ "UNIT=%s", name);
service = new(SysvStub, 1);
if (!service)