]> git.ipfire.org Git - thirdparty/systemd.git/commit
TEST-50-DISSECT: notify message cannot be sent by ncat
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Dec 2024 06:09:47 +0000 (15:09 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 18 Dec 2024 14:50:02 +0000 (15:50 +0100)
commit67e5622bfe037603e47f38cf02e58d522b3c18f7
treea0226b42b2b80060c2238a3833e40084bbb9ad3a
parent0da73fab56506ff1e4f8e59c167d27961f0fbf33
TEST-50-DISSECT: notify message cannot be sent by ncat

Follow-up for d0a63cf0412ccb9b4edd1f6048e25aa7f68b0133.

The command ncat may be already dead when the service manager receives
the notify message. Hence, the service cannot be found by the sender PID,
and the notify message will be ignored.
```
Dec 17 03:26:49 systemd[1]: Cannot find unit for notify message of PID 1159, ignoring.
Dec 17 03:26:49 systemd[1]: Received SIGCHLD from PID 1152 (bash).
Dec 17 03:26:49 systemd[1]: Child 1152 (bash) died (code=exited, status=0/SUCCESS)
Dec 17 03:26:49 systemd[1]: run-p1151-i1451.service: Child 1152 belongs to run-p1151-i1451.service.
Dec 17 03:26:49 systemd[1]: run-p1151-i1451.service: Main process exited, code=exited, status=0/SUCCESS (success)
Dec 17 03:26:49 systemd[1]: run-p1151-i1451.service: Failed with result 'protocol'.
Dec 17 03:26:49 systemd[1]: run-p1151-i1451.service: Service will not restart (restart setting)
Dec 17 03:26:49 systemd[1]: run-p1151-i1451.service: Changed start -> failed
```

This also drops unnecessary --pipe option and redundant check by 'env' command.
test/units/TEST-50-DISSECT.dissect.sh