mirror of
https://github.com/systemd/systemd.git
synced 2025-08-24 09:49:49 +03:00
sysv-generator: break long message into lines
The journal handles multi-line messages nicely, and they are easier
to read. Drop the recycling symbol, there is no circular process here,
we go from a to b and never back to a again.
(cherry picked from commit bb56c27fc8
)
This commit is contained in:
committed by
Luca Boccassi
parent
3190a427b9
commit
6a4ff7a5c1
@ -763,12 +763,13 @@ static int enumerate_sysv(const LookupPaths *lp, Hashmap *all_services) {
|
|||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
log_struct(LOG_WARNING,
|
log_struct(LOG_WARNING,
|
||||||
LOG_MESSAGE("SysV service '%s' lacks a native systemd unit file. "
|
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. "
|
"automatically generating a unit file for compatibility.\n"
|
||||||
|
"Please update package to include a native systemd unit file.\n"
|
||||||
"%s This compatibility logic is deprecated, expect removal soon. %s",
|
"%s This compatibility logic is deprecated, expect removal soon. %s",
|
||||||
fpath,
|
fpath,
|
||||||
special_glyph(SPECIAL_GLYPH_RECYCLING),
|
special_glyph(SPECIAL_GLYPH_WARNING_SIGN),
|
||||||
special_glyph(SPECIAL_GLYPH_WARNING_SIGN), special_glyph(SPECIAL_GLYPH_WARNING_SIGN)),
|
special_glyph(SPECIAL_GLYPH_WARNING_SIGN)),
|
||||||
"MESSAGE_ID=" SD_MESSAGE_SYSV_GENERATOR_DEPRECATED_STR,
|
"MESSAGE_ID=" SD_MESSAGE_SYSV_GENERATOR_DEPRECATED_STR,
|
||||||
"SYSVSCRIPT=%s", fpath,
|
"SYSVSCRIPT=%s", fpath,
|
||||||
"UNIT=%s", name);
|
"UNIT=%s", name);
|
||||||
|
Reference in New Issue
Block a user