Adriana Kobylak | 545f874 | 2017-04-11 11:06:59 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=mapper subtree-remove %I |
| 3 | Wants=obmc-mapper.target |
| 4 | After=obmc-mapper.target |
| 5 | |
| 6 | [Service] |
William A. Kennington III | 4b94508 | 2018-06-27 09:54:53 -0700 | [diff] [blame] | 7 | # We are using a Type=simple service instead of the normal Type=oneshot |
| 8 | # since Type=oneshot can't have Restart= lines |
| 9 | # https://github.com/systemd/systemd/issues/2582 |
| 10 | # Unfortunately Type=oneshot services halt any services which order after |
| 11 | # the oneshot on the completion of ExecStart= lines. For Type=simple, the |
| 12 | # halting is only until ExecStartPre lines have completed and ExecStart has |
| 13 | # begun executing. Since we want to wait for the `mapper wait` process to |
| 14 | # finish, it must be an ExecStartPre. All Type=simple services require an |
| 15 | # ExecStart so we use `true` as a placeholder to satisfy the requirement. |
| 16 | Type=simple |
Adriana Kobylak | 545f874 | 2017-04-11 11:06:59 -0500 | [diff] [blame] | 17 | RemainAfterExit=no |
William A. Kennington III | 4b94508 | 2018-06-27 09:54:53 -0700 | [diff] [blame] | 18 | Restart=on-failure |
| 19 | TimeoutStartSec=infinity |
| 20 | ExecStartPre=/usr/bin/env mapper subtree-remove %I |
| 21 | ExecStart=/usr/bin/env true |
Michael Tritz | fbd81be | 2017-08-15 14:07:23 -0500 | [diff] [blame] | 22 | SyslogIdentifier=mapper |