From 5ae0388410efd505b371797c7573a05f9d77e66b Mon Sep 17 00:00:00 2001 From: Jacob Salmela Date: Mon, 25 Apr 2022 16:08:44 -0500 Subject: [PATCH] prevent error ``` Apr 25 20:58:20 redbull-ncn-m001-pit systemd[1]: /usr/lib/systemd/system/basecamp.service:14: Unit configured to use KillMode=none. Support for KillMode=none is deprecated and will be eventually removed in future SLE versions. Please see SUSE TID https://www.suse.com/support/kb/doc/?id=000020394 for more details. ``` by setting the killmode to control-group Signed-off-by: Jacob Salmela --- init/basecamp.service | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init/basecamp.service b/init/basecamp.service index 729a667..f0fa259 100644 --- a/init/basecamp.service +++ b/init/basecamp.service @@ -7,12 +7,14 @@ After=network-online.target [Service] Restart=on-failure Environment=GIN_MODE=release -ExecStartPre=/usr/sbin/basecamp-init.sh %t/%n-pid %t/%n-cid basecamp +ExecStartPre=/usr/sbin/basecamp-init.sh %t/%n-pid %t/%n-cid metal-basecamp ExecStart=/usr/bin/podman start basecamp ExecStop=/usr/bin/podman stop --ignore -t 10 basecamp PIDFile=%t/%n-pid -KillMode=none +# all remaining processes in the control group of this unit will be killed on unit stop +# https://www.suse.com/support/kb/doc/?id=000020394 +KillMode=control-group Type=forking [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target