blob: 16df561d72e0d87691f419102accecaa9bf4e4c1 [file] [log] [blame]
Dhruvaraj Subhashchandran9f557362021-05-12 06:28:20 -05001[Unit]
2Description=Remove entries of dumps stored in the host memory during poweroff
3Wants=obmc-host-stop-pre@0.target
4After=obmc-host-stop-pre@0.target
5Wants=obmc-host-stopping@0.target
6Before=obmc-host-stopping@0.target
7Conflicts=obmc-host-startmin@0.target
Dhruvaraj Subhashchandranb116bbb2022-02-24 06:09:37 -06008ConditionPathExists=!/run/openbmc/mpreboot@0
Dhruvaraj Subhashchandran9f557362021-05-12 06:28:20 -05009
10[Service]
11Type=oneshot
12ExecStart=/usr/bin/busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/resource xyz.openbmc_project.Collection.DeleteAll DeleteAll
13ExecStart=/usr/bin/busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/system xyz.openbmc_project.Collection.DeleteAll DeleteAll
14RemainAfterExit=yes
15
16[Install]
Andrew Geissler27884e62023-05-09 13:53:50 -050017#WantedBy=obmc-host-stop@0.target