balena-supervisor/test/lib/dbus/entry.sh
Felipe Lalanne 819e184095 Setup environment for dbus tests
Change-type: patch
2022-10-17 11:24:15 -03:00

14 lines
341 B
Bash
Executable File

#!/bin/sh
if [ "${DEVELOPMENT}" = "1" ]; then
# Use nodemon in development mode
npx nodemon -w systemd.ts systemd.ts &
npx nodemon -w login.ts login.ts
else
# Launch services in separate processes. node-dbus for some
# reason blocks when trying to register multiple services
# on the same process
node systemd.js &
node login.js
fi