blob: f1dd0d394a6b3e3f19100dbd1c258108ef2c2ee0 [file] [log] [blame]
[Unit]
Description=Remove entries of dumps stored in the host memory during poweroff
Wants=obmc-host-stop-pre@0.target
After=obmc-host-stop-pre@0.target
Wants=obmc-host-stopping@0.target
Before=obmc-host-stopping@0.target
Conflicts=obmc-host-startmin@0.target
ConditionPathExists=!/run/openbmc/mpreboot@0
[Service]
Type=oneshot
ExecStart=/usr/bin/busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/resource xyz.openbmc_project.Collection.DeleteAll DeleteAll
ExecStart=/usr/bin/busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/system xyz.openbmc_project.Collection.DeleteAll DeleteAll
RemainAfterExit=yes
[Install]
WantedBy=obmc-host-stop@0.target