Skip to content

Commit 12830e2

Browse files
authored
Upgrade Janus Debian package and manage systemd service (#1918)
Resolves #1917 Dependent on tiny-pilot/janus-debian#23 This PR makes use of an updated Janus Debian package, one that doesn't create a systemd service. Instead, TinyPilot now fully manages the Janus systemd service (similar to how our uStreamer Debian package works). You can test this code on device by running: ``` curl \ --silent \ --show-error \ --location \ https://raw.githubusercontent.com/tiny-pilot/tinypilot/master/dev-scripts/device/install-bundle | \ sudo bash -s -- \ https://output.circle-artifacts.com/output/job/fa98e807-f880-4da5-bb31-0493bb2ea525/artifacts/0/bundler/dist/tinypilot-community-20250929T1303Z-1.11.0-18+677b746.tgz ``` <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1918"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a>
1 parent 218d6d3 commit 12830e2

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

bundler/create-bundle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ readonly BUNDLE_FILENAME="tinypilot-${TINYPILOT_VARIANT}-${TIMESTAMP}-${TINYPILO
7171
# Download Janus Debian package.
7272
wget \
7373
--directory-prefix="${BUNDLE_DIR}" \
74-
https://github.com/tiny-pilot/janus-debian/releases/download/1.3.2-20250808114245/janus_1.3.2-20250808114245_armhf.deb
74+
https://github.com/tiny-pilot/janus-debian/releases/download/1.3.2-20250929125525/janus_1.3.2-20250929125525_armhf.deb
7575

7676
# Download uStreamer Debian package.
7777
wget \

debian-pkg/debian/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ override_dh_installsystemd:
1919
dh_installsystemd --name=tinypilot-updater --no-start --no-enable
2020
dh_installsystemd --name=usb-gadget --no-start
2121
dh_installsystemd --name=ustreamer
22+
dh_installsystemd --name=janus
2223

2324
override_dh_virtualenv:
2425
# Skip install because TinyPilot doesn't need to run setup.py to install.
File renamed without changes.

debian-pkg/debian/tinypilot.postinst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,4 @@ cp \
192192
/usr/share/tinypilot/janus.transport.websockets.jcfg \
193193
/etc/janus/janus.transport.websockets.jcfg
194194

195-
# Override Janus systemd config.
196-
cp \
197-
/usr/share/tinypilot/janus.service \
198-
/etc/systemd/system/janus.service
199-
200-
# Restart Janus to pick up the new config files.
201-
deb-systemd-invoke restart janus
202-
203195
#DEBHELPER#

0 commit comments

Comments
 (0)