Add a service to delay the reset
This change pushes the reset state out of bmcweb and into a special
daemon. Bmcweb will call this service, and this service with the delay
time.
Testd:
date && systemctl start delay@5.service && date
journalctl -f | grep -i 'systemd\|delay\|curl'
systemd[1]: Starting Delay power off...
(5 second delay)
systemd[1]: Started Delay power off.
curl[7198]: % Total % Received % Xferd Average Speed Time Time Time Current
curl[7198]: [395B blob data]
curl[7198]: {
curl[7198]: "@Message.ExtendedInfo": [
curl[7198]: {
curl[7198]: "@odata.type": "#Message.v1_1_1.Message",
curl[7198]: "Message": "The request completed successfully.",
curl[7198]: "MessageArgs": [],
curl[7198]: "MessageId": "Base.1.13.0.Success",
curl[7198]: "MessageSeverity": "OK",
curl[7198]: "Resolution": "None"
curl[7198]: }
curl[7198]: ]
curl[7198]: }
Signed-off-by: John Edward Broadbent <jebr@google.com>
Change-Id: I2615f47f915ea87f75b4e05b902f5308f15aa867
(cherry picked from commit 2d8afda19fb13210f47e4028288be0dfe72d9ac3)
2 files changed