-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: adjust settings for log4j-hotpatch-enabled
The new settings will generate the configurations needed to log deprecation warning in the journal. Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
- Loading branch information
1 parent
38410d3
commit e3bc71d
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{~#if settings.oci-hooks.log4j-hotpatch-enabled~}} | ||
DEPRECATED_SETTING=oci-hooks.log4j-hotpatch-enabled | ||
{{~/if~}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,14 @@ restart-commands = [] | |
[configuration-files.oci-hooks] | ||
path = "/etc/shimpei/shimpei-hooks.json" | ||
template-path = "/usr/share/templates/oci-default-hooks-json" | ||
|
||
[metadata.settings.oci-hooks.log4j-hotpatch-enabled] | ||
affected-services = ["log4j-hotpatch-enabled"] | ||
|
||
[services.log4j-hotpatch-enabled] | ||
configuration-files = ["log4j-hotpatch-enabled-log-message"] | ||
restart-commands = ["systemctl restart [email protected]"] | ||
|
||
[configuration-files.log4j-hotpatch-enabled-log-message] | ||
path = "/etc/deprecated-settings/log4j-hotpatch-enabled" | ||
template-path = "/usr/share/templates/log4j-hotpatch-enabled" |