xref: /openbmc/phosphor-state-manager/service_files/phosphor-create-chassis-poweron-log@.service (revision afe12d69a0c8182e7b587d81531e0a9e376f5ce7)
1[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
21