Skip to content

Commit

Permalink
added hivemind-core listener service (#73)
Browse files Browse the repository at this point in the history
* added hivemind-core listener service

* fixed systemd service
  • Loading branch information
builderjer authored Aug 17, 2023
1 parent 5871732 commit 283155a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/raspbian-ovos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# images in stage2 (lite), stage4 and stage5. You probably want to hook in custom
# stages before one of the exported stages. Otherwise, the action will make sure
# any custom stage will include an image export directive.
stage-list: stage0 stage1 stage2 ./stage-prep ./stage-core ./stage-phal ./stage-audio ./stage-skills ./stage-shareport-spotify ./stage-finalize
stage-list: stage0 stage1 stage2 ./stage-prep ./stage-core ./stage-phal ./stage-audio ./stage-skills ./stage-shareport-spotify ./stage-hivemind ./stage-finalize

# Host name of the image.
hostname: raspOvos
Expand Down Expand Up @@ -132,4 +132,4 @@ jobs:
source: "${{ steps.build.outputs.image-path }}"
target: "raspbian/development"
strip_components: 4

6 changes: 6 additions & 0 deletions stage-hivemind/01-hive-core/01-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -e

install -v -d -m 0755 "${ROOTFS_DIR}/home/ovos/.local/share/hivemind"
install -v -m 0644 files/hivemind-listener.service "${ROOTFS_DIR}/etc/systemd/user/hivemind-listener.service"

echo "disable hivemind-listener.service" >> "${ROOTFS_DIR}/etc/systemd/user-preset/10-ovos-user.preset"
12 changes: 12 additions & 0 deletions stage-hivemind/01-hive-core/files/hivemind-listener.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Hivemind Listener
After=pulseaudio.service

[Service]
Type=simple
ExecStart=hivemind-core listen
TimeoutStartSec=10m
TimeoutStopSec=1m
Restart=on-failure
StartLimitInterval=5min
StartLimitBurst=4

0 comments on commit 283155a

Please sign in to comment.