Skip to content

Commit

Permalink
supervisor: added .service file (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored Aug 8, 2024
1 parent 3a3244b commit 83dd83d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orb-supervisor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ dbus-launch = "0.2.0"
tokio = { version = "1.25.0", features = ["sync", "test-util"] }

[package.metadata.deb]
maintainer-scripts = "debian/"
assets = [
["target/release/orb-supervisor", "/usr/local/bin/", "755"]
]
systemd-units = [
{ unit-name = "worldcoin-supervisor" },
]
13 changes: 13 additions & 0 deletions orb-supervisor/debian/orb-supervisor.worldcoin-supervisor.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Worldcoin Supervisor

[Service]
Type=dbus
BusName=org.worldcoin.OrbSupervisor1
SyslogIdentifier=worldcoin-supervisor
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/worldcoin_bus_socket
Environment="RUST_LOG=debug"
ExecStart=/usr/local/bin/orb-supervisor

[Install]
WantedBy=multi-user.target

0 comments on commit 83dd83d

Please sign in to comment.