Start LXC Container after boot completion

I would like to run start an lxc container (for homebridge) after my MOX has booted successfully.

Is this the right place to do this?

Is this the necessary solution ? https://docs.turris.cz/geek/lxc/lxc/

Starting the container at boot

To enable automatic startup of your container at boot, you need to edit the configuration file: /etc/config/lxc-auto .

Here is an example configuration file:

/etc/config/lxc-auto

config container option name my_first_container option timeout 60 config container option name my_second_container option timeout 120

As you can see, you can configure multiple container sections. Every container here will start at boot and each of them will be correctly halted during the shutdown. Set the timeout option to specify how much time in seconds the containers have to gracefully shut down before being killed. The default value is 300.

1 Like