summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-phosphor/dbus/phosphor-mapper/mapper-wait@.service
blob: f7744e2d8b76d7953c043666cc73ace06768ac25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=Wait for %I
Wants=obmc-mapper.target
After=obmc-mapper.target

[Service]
# We are using a Type=simple service instead of the normal Type=oneshot
# since Type=oneshot can't have Restart= lines
# https://github.com/systemd/systemd/issues/2582
# Unfortunately Type=oneshot services halt any services which order after
# the oneshot on the completion of ExecStart= lines. For Type=simple, the
# halting is only until ExecStartPre lines have completed and ExecStart has
# begun executing. Since we want to wait for the `mapper wait` process to
# finish, it must be an ExecStartPre. All Type=simple services require an
# ExecStart so we use `true` as a placeholder to satisfy the requirement.
Type=simple
RemainAfterExit=yes
Restart=on-failure
TimeoutStartSec=infinity
ExecStartPre=/usr/bin/env mapper wait %I
ExecStart=/usr/bin/env true
SyslogIdentifier=mapper
OpenPOWER on IntegriCloud