Skip to content

Commit 67bd49c

Browse files
committed
runtime: add example for stopping host OS service
Change-type: patch Signed-off-by: Joseph Kogut <joseph@balena.io>
1 parent 38da9a4 commit 67bd49c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pages/learn/develop/runtime.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,20 @@ DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
100100
org.freedesktop.systemd1.Manager.Reboot
101101
```
102102

103+
#### Stopping a systemd service
104+
At times, you may wish to stop a running service on the host OS, such as `bluetooth.service`, in order to run your own instance of bluez containerized.
105+
106+
```Bash
107+
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
108+
dbus-send \
109+
--system \
110+
--print-reply \
111+
--dest=org.freedesktop.systemd1 \
112+
/org/freedesktop/systemd1 \
113+
org.freedesktop.systemd1.Manager.StopUnit \
114+
string:bluetooth.service string:replace
115+
```
116+
103117
#### Checking if device time is NTP synchronized
104118
```Bash
105119
DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \

0 commit comments

Comments
 (0)