#1128490 tgt's postinst meddles with PID file also when running under systemd

Package:
tgt
Source:
tgt
Description:
Linux SCSI target user-space daemon and tools
Submitter:
Gioele Barabucci
Date:
2026-02-20 11:51:02 UTC
Severity:
normal
Tags:
#1128490#5
Date:
2026-02-20 11:49:10 UTC
From:
To:
Dear tgt maintainer,

the postinst maintscript manually checks whether tgtd is running and
saves its PID to /run/tgt.pid. This is not needed in systems that run
systemd and it is also not safe in chroots and similar environments.
This check also uses pidof, which will also be made non-essential shortly.

You can find a MR that fixes this issue at

https://salsa.debian.org/debian/tgt/-/merge_requests/5

Regards,