mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 01:58:54 +00:00
819e184095
Change-type: patch
14 lines
341 B
Bash
Executable File
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
|