blob: f7744e2d8b76d7953c043666cc73ace06768ac25 [file] [log] [blame]
Brad Bishop231230b2016-08-08 20:04:29 -04001[Unit]
2Description=Wait for %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
Brad Bishop231230b2016-08-08 20:04:29 -040017RemainAfterExit=yes
William A. Kennington III4b945082018-06-27 09:54:53 -070018Restart=on-failure
19TimeoutStartSec=infinity
20ExecStartPre=/usr/bin/env mapper wait %I
21ExecStart=/usr/bin/env true
Michael Tritzfbd81be2017-08-15 14:07:23 -050022SyslogIdentifier=mapper