Fix following system unsafe waring

/usr/lib/systemd/system/openct.service:10: Unit uses KillMode=none. This is 
unsafe, as it disables systemd's process lifecycle management for the service. 
Please update the service to use a safer KillMode=, such as 'mixed' or 
'control-group'. Support for KillMode=none is deprecated and will eventually be 
removed.

Signed-off-by: Zheng Ruoqin <[email protected]>
---
 meta-oe/recipes-support/openct/openct/openct.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/openct/openct/openct.service 
b/meta-oe/recipes-support/openct/openct/openct.service
index c9ec497fa5..57de8c0a88 100644
--- a/meta-oe/recipes-support/openct/openct/openct.service
+++ b/meta-oe/recipes-support/openct/openct/openct.service
@@ -7,7 +7,7 @@ EnvironmentFile=-/etc/sysconfig/openct
 ExecStart=/usr/sbin/openct-control $OPENCT_OPTIONS init 
 ExecStop=/usr/sbin/openct-control $OPENCT_OPTIONS shutdown
 RemainAfterExit=yes
-KillMode=none
+KillMode=mixed
 
 [Install]
 WantedBy=multi-user.target
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#125639): 
https://lists.openembedded.org/g/openembedded-devel/message/125639
Mute This Topic: https://lists.openembedded.org/mt/118515239/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to