1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-23 05:50:06 +03:00
Files
systemd-stable/test/units/testsuite-57-retry-fail.service
Luca Boccassi fa8d33bb37 Uphold/StopWhenUnneeded/BindsTo: requeue when job finishes
When a unit is upheld and fails, and there are no state changes in
the upholder, it will not be retried, which is against what the
documentation suggests.

Requeue when the job finishes. Same for the other two queues.

(cherry picked from commit 4c7a0fc8d0)
2023-04-27 21:30:38 +01:00

10 lines
234 B
Desktop File

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Failed Dependency Unit
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c "if [ -f /tmp/testsuite-57-retry-fail ]; then exit 0; else exit 1; fi"
Restart=no