blob: a3d8e186a04ad953299ac99619eca9bfb16afbc9 [file] [log] [blame]
Andrew Geisslerafe12d62023-04-28 14:58:16 -06001[Unit]
2Description=Create info log indicating chassis%i poweron has started
3Wants=obmc-power-start-pre@%i.target
4Before=obmc-power-start-pre@%i.target
5Before=phosphor-regulators-config.service
6Conflicts=obmc-chassis-poweroff@%i.target
7ConditionPathExists=!/run/openbmc/chassis@%i-on
8
9[Service]
10Restart=no
11Type=oneshot
12RemainAfterExit=yes
13ExecStart=/bin/sh -c \
14 "busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging \
15 xyz.openbmc_project.Logging.Create Create ssa{ss} \
16 xyz.openbmc_project.State.Info.ChassisPowerOnStarted \
17 xyz.openbmc_project.Logging.Entry.Level.Informational 1 CHASSIS_ID %i"
18
19[Install]
20WantedBy=obmc-chassis-poweron@%i.target