beamylabs / beamylabs-start

5 stars 5 forks source link

adding a systemd beamylabs.service unit file #11

Closed hjelm closed 3 years ago

hjelm commented 3 years ago

I'm guessing that this is not how you intended to run the signal broker, but I'd thought that I add it as such to aid our conversation.

hjelm commented 3 years ago

In the upgrade.sh script you run docker-compose with the daemon setting. Like this: NODE_NAME=$(scripts/resolve-ip.sh eth0) SIGNALBROKER_IP=192.168.4.1 docker-compose -f docker-compose-full-system.yml up -d However, when I try todo so, the system starts and then directly shuts down again. With the restart setting on in the unit file it keeps starting and stopping ad infinitum. Also having the SIGNALBROKER_IP fixed to that ip address makes the script simply not useful for me.

AleksandarFilipov commented 3 years ago

Thanks for your feedback, these files reflect a very specific setup so I understand we need to make them "generic" or at least not/less hardcoded. Assume the upgrade.sh should accept params.