mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-31 19:17:03 +00:00
14 lines
341 B
Bash
14 lines
341 B
Bash
|
#!/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
|