frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.67k stars 785 forks source link

The Fuxa doesn't autostart #1292

Open Brandon-sistein opened 1 month ago

Brandon-sistein commented 1 month ago

When I reestart the PC doesn't start the aplication automatically.

I have FUXA installed at a raspberry pi with Docker and I used this command to autostart

docker run -d --restart unless-stopped frangoteam/fuxa

when I execute this comand

sudo docker inspect -f '{{.HostConfig.RestartPolicy.Name}}' fuxa

Show me this:

always

MatthewReed303 commented 1 month ago

@Brandon-sistein Docker will start Fuxa automatically without doing anything? no need to run docker run -d --restart unless-stopped frangoteam/fuxa on startup. I prefer to use Docker Compose to setup Fuxa and the volumes/network etc

Brandon-sistein commented 1 day ago

Hello, I solved with this command:

sudo nano /etc/rc.local

I added this commands:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Your command here
docker run -d -p 1881:1881 frangoteam/fuxa:latest

exit 0

But now when I restart the operating system the current project is deleted and I have to reload the JSON of the proyect