xref: /openbmc/openpower-proc-control/service_files/op-clear-sys-dump-active@.service.in (revision 3f97eaa4b6f6a4c7cf97a0c80566eb6783d7e8af)
19ca8a117SAndrew Geissler[Unit]
29ca8a117SAndrew GeisslerDescription=Reset pvm_sys_dump_active back to Disabled
39ca8a117SAndrew GeisslerWants=xyz.openbmc_project.biosconfig_manager.service
49ca8a117SAndrew GeisslerAfter=xyz.openbmc_project.biosconfig_manager.service
59ca8a117SAndrew GeisslerAfter=op-enter-mpreboot@%i.service
69ca8a117SAndrew GeisslerAfter=obmc-host-reset@%i.target
79ca8a117SAndrew GeisslerConditionPathExists=!/run/openbmc/host@%i-on
89ca8a117SAndrew GeisslerConditionPathExists=!/run/openbmc/mpreboot@%i
99ca8a117SAndrew Geissler
109ca8a117SAndrew Geissler[Service]
119ca8a117SAndrew GeisslerRestart=no
129ca8a117SAndrew GeisslerType=oneshot
139ca8a117SAndrew GeisslerExecStart=/bin/sh -c \
149ca8a117SAndrew Geissler  "busctl set-property xyz.openbmc_project.BIOSConfigManager \
159ca8a117SAndrew Geissler   /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager \
1603eaa3e8SAndrew Geissler   PendingAttributes a{s\\(sv\\)} 1 pvm_sys_dump_active \
179ca8a117SAndrew Geissler   xyz.openbmc_project.BIOSConfig.Manager.AttributeType.Enumeration s Disabled"
189ca8a117SAndrew Geissler
19*3f97eaa4SDeepa Karthikeyan#The corresponding bitbake recipe will do the actual installation
209ca8a117SAndrew Geissler[Install]
21*3f97eaa4SDeepa Karthikeyan#WantedBy=multi-user.target
22*3f97eaa4SDeepa Karthikeyan#WantedBy=obmc-host-quiesce@%i.target
23