blob: 4bd411e75f769c3e6fc69c4a384226f35a0e774b [file] [log] [blame]
Adriana Kobylak545f8742017-04-11 11:06:59 -05001[Unit]
2Description=mapper subtree-remove %I
3Wants=obmc-mapper.target
4After=obmc-mapper.target
5
6[Service]
William A. Kennington III4b945082018-06-27 09:54:53 -07007# 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.
16Type=simple
Adriana Kobylak545f8742017-04-11 11:06:59 -050017RemainAfterExit=no
William A. Kennington III4b945082018-06-27 09:54:53 -070018Restart=on-failure
19TimeoutStartSec=infinity
20ExecStartPre=/usr/bin/env mapper subtree-remove %I
21ExecStart=/usr/bin/env true
Michael Tritzfbd81be2017-08-15 14:07:23 -050022SyslogIdentifier=mapper