Skip to content

Commit

Permalink
supervisor: document shutdown busctl (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored Aug 9, 2024
1 parent 57d0a3c commit fa53e5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion orb-attest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ The token is generated by:
## Busctl commands

To fetch the auth token from the command line via dbus, run the following:
```
```bash
busctl call --address=unix:path=/tmp/worldcoin_bus_socket org.worldcoin.AuthTokenManager1 /org/worldcoin/AuthTokenManager1 org.freedesktop.DBus.Properties Get ss "org.worldcoin.AuthTokenManager1" "Token"
```
7 changes: 7 additions & 0 deletions orb-supervisor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ It is best industry practice to write dedicated services *where possible*, where
+ Sound
+ LED
+ library for basic and repeatable "component"

## Useful dbus commands

Reboot orb without sudo after 10 seconds:
```bash
busctl call --address=unix:path=/tmp/worldcoin_bus_socket org.worldcoin.OrbSupervisor1 /org/worldcoin/OrbSupervisor1/Manager org.worldcoin.OrbSupervisor1.Manager ScheduleShutdown st "reboot" $(date -d "+10 seconds" +%s%N | cut -c1-16)
```

0 comments on commit fa53e5c

Please sign in to comment.