blob: f1dd0d394a6b3e3f19100dbd1c258108ef2c2ee0 [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]
17WantedBy=obmc-host-stop@0.target