'upgrader get SIGKILL by systemd + cgroup, how to avoid this
env:
- a.rpm : include
apiserverprogram - apiserver:api service program using github.com/gin-gonic/gin
- upgrader: my upgrader program written by golang
purpose: upgrade a.rpm
step:
- use apiserver to upload upgrade file(
*.tar.gz), then decompress tar.gz and executenohup ./upgrader >/dev/null 2>&1 & - upgrader will get SIGTERM from systemd when it execute
rpm -e aorsystemctl stop ato killapiserver
I found it is triggered by cgoup. When apiserver.service is stopping, systemd will kill children by cgoup.
How to avoid this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
