Skip to content

Commit

Permalink
feat: add runit finish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Oct 2, 2024
1 parent 198cc2e commit 839d5c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:alpine as builder
FROM rust:alpine AS builder

RUN apk add build-base openssl-dev
WORKDIR "/usr/share/bytebeam/uplink"
Expand Down Expand Up @@ -28,4 +28,3 @@ CMD ["/usr/bin/runsvdir", "/etc/runit"]

COPY paths/ paths
COPY simulator.sh .

6 changes: 6 additions & 0 deletions runit/simulator/finish
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

cd /usr/share/bytebeam/uplink

exec ./simulator.sh kill_devices
echo "Killed all simulated devices"

0 comments on commit 839d5c9

Please sign in to comment.