소스 검색

systemd waiting long to shutdown SWUpdate

Under certain situations, systemd is waiting for a long time that
SWUpdate stops. SWUpdate has in fact its own process control management
to monitor its own processes and SIGTERM cannot be sent to the children
by systemd. Add KillMode=mixed option to let SWUpdate to make its job:
systemd will send SIGTERM just to SWUPdate's main process.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Johannes Schrimpf <johannes.schrimpf@blueye.no>
Stefano Babic 6 년 전
부모
커밋
09c4868b90
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      recipes-support/swupdate/swupdate/swupdate.service

+ 1 - 0
recipes-support/swupdate/swupdate/swupdate.service

@@ -7,6 +7,7 @@ Documentation=https://sbabic.github.io/swupdate
 ExecStartPre=-/usr/bin/swupdate-env
 EnvironmentFile=-/tmp/swupdate.env
 ExecStart=/usr/bin/swupdate -v -w "-r /www" $SWUPDATE_EXTRA_ARGS
+KillMode=mixed
 
 [Install]
 WantedBy=multi-user.target