xref: /openbmc/openpower-debug-collector/dump/dist/clear_systemdumps_poweroff.service (revision d158952df8cadbd4197cc9759cd94291490f15ac)
1*d158952dSDhruvaraj Subhashchandran[Unit]
2*d158952dSDhruvaraj SubhashchandranDescription=Remove system dump entries during poweroff
3*d158952dSDhruvaraj SubhashchandranWants=obmc-host-stop-pre@0.target
4*d158952dSDhruvaraj SubhashchandranAfter=obmc-host-stop-pre@0.target
5*d158952dSDhruvaraj SubhashchandranWants=obmc-host-stopping@0.target
6*d158952dSDhruvaraj SubhashchandranBefore=obmc-host-stopping@0.target
7*d158952dSDhruvaraj SubhashchandranAfter=op-enter-mpreboot@0.service
8*d158952dSDhruvaraj SubhashchandranConflicts=obmc-host-startmin@0.target
9*d158952dSDhruvaraj SubhashchandranConditionPathExists=!/run/openbmc/host@0-on
10*d158952dSDhruvaraj SubhashchandranConditionPathExists=!/run/openbmc/mpreboot@0
11*d158952dSDhruvaraj Subhashchandran
12*d158952dSDhruvaraj Subhashchandran[Service]
13*d158952dSDhruvaraj SubhashchandranType=oneshot
14*d158952dSDhruvaraj SubhashchandranExecStart=/usr/bin/dumpdelete xyz.openbmc_project.Dump.Entry.System
15*d158952dSDhruvaraj Subhashchandran
16*d158952dSDhruvaraj SubhashchandranRemainAfterExit=yes
17*d158952dSDhruvaraj Subhashchandran
18*d158952dSDhruvaraj Subhashchandran[Install]
19*d158952dSDhruvaraj Subhashchandran#WantedBy=obmc-host-stop@0.target
20*d158952dSDhruvaraj Subhashchandran
21