From 83dd83d26659ce6cc838159948cd8a5aa7518515 Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Thu, 8 Aug 2024 11:09:27 -0400 Subject: [PATCH] supervisor: added .service file (#176) --- orb-supervisor/Cargo.toml | 7 +++++++ .../orb-supervisor.worldcoin-supervisor.service | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 orb-supervisor/debian/orb-supervisor.worldcoin-supervisor.service diff --git a/orb-supervisor/Cargo.toml b/orb-supervisor/Cargo.toml index aae66f53..e50cbde7 100644 --- a/orb-supervisor/Cargo.toml +++ b/orb-supervisor/Cargo.toml @@ -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" }, +] diff --git a/orb-supervisor/debian/orb-supervisor.worldcoin-supervisor.service b/orb-supervisor/debian/orb-supervisor.worldcoin-supervisor.service new file mode 100644 index 00000000..04ad8bb8 --- /dev/null +++ b/orb-supervisor/debian/orb-supervisor.worldcoin-supervisor.service @@ -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