Skip to content

Commit

Permalink
prevent error
Browse files Browse the repository at this point in the history
```
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 <[email protected]>
  • Loading branch information
jacobsalmela committed Apr 25, 2022
1 parent 6f1c902 commit 5ae0388
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions init/basecamp.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
WantedBy=multi-user.target

0 comments on commit 5ae0388

Please sign in to comment.