Skip to content

Commit 77aafa2

Browse files
committed
dbus: systemd: also monitor rauc.service
This exposes the status of the RAUC daemon to users inside and outside of the tacd. As of now neither of them exist, but in the next few commits support for re-starting the RAUC deamon to reload its configuration will be added. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent ac2e0c4 commit 77aafa2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ paths:
697697
- network-manager
698698
- labgrid-exporter
699699
- lxa-iobus
700+
- rauc
700701
put:
701702
summary: Perform an action on a systemd service
702703
tags: [System]
@@ -722,6 +723,7 @@ paths:
722723
- network-manager
723724
- labgrid-exporter
724725
- lxa-iobus
726+
- rauc
725727
get:
726728
summary: Get the status of a systemd service
727729
tags: [System]

src/dbus/systemd.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ pub struct Systemd {
6666
pub labgrid: Service,
6767
#[allow(dead_code)]
6868
pub iobus: Service,
69+
#[allow(dead_code)]
70+
pub rauc: Service,
6971
}
7072

7173
impl ServiceStatus {
@@ -238,6 +240,7 @@ impl Systemd {
238240
let networkmanager = Service::new(bb, "network-manager");
239241
let labgrid = Service::new(bb, "labgrid-exporter");
240242
let iobus = Service::new(bb, "lxa-iobus");
243+
let rauc = Service::new(bb, "rauc");
241244

242245
networkmanager
243246
.connect(wtb, conn.clone(), "NetworkManager.service")
@@ -248,12 +251,14 @@ impl Systemd {
248251
iobus
249252
.connect(wtb, conn.clone(), "lxa-iobus.service")
250253
.await?;
254+
rauc.connect(wtb, conn.clone(), "rauc.service").await?;
251255

252256
Ok(Self {
253257
reboot,
254258
networkmanager,
255259
labgrid,
256260
iobus,
261+
rauc,
257262
})
258263
}
259264
}

0 commit comments

Comments
 (0)