]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: reject waiting for remain-after-exit services 43003/head
authordongshengyuan <545258830@qq.com>
Mon, 13 Jul 2026 06:23:26 +0000 (14:23 +0800)
committerdongshengyuan <545258830@qq.com>
Tue, 14 Jul 2026 04:03:22 +0000 (12:03 +0800)
commit06247b0804fcd75f26a329b35ec92033f6c56bd7
tree207e125946a1c372cb0270a548a4b5a1dc9d31a4
parent7e76e931420fbd5aa1390947c084a92661b1e709
run: reject waiting for remain-after-exit services

Reproducer:
  unit=run-wait-rae-$(date +%s)
  sudo timeout 3s systemd-run --wait --remain-after-exit \
      --unit="$unit" /bin/true
  echo $?
  systemctl is-active "$unit.service"

Before, the command timed out with exit status 124 while the service
stayed active. --wait waits for deactivation, but RemainAfterExit=yes
keeps the service active after the command exits.

Follow-up for 2a453c2ee3090e1942bfd962262f3eff0adbfa97
man/systemd-run.xml
src/run/run.c
test/units/TEST-74-AUX-UTILS.run.sh