@@ -44,14 +44,9 @@ If not, you can inspect why with ``docker logs <container>``. Note that the cont
...
@@ -44,14 +44,9 @@ If not, you can inspect why with ``docker logs <container>``. Note that the cont
Post-boot Initialisation
Post-boot Initialisation
---------------------------
---------------------------
The following procedure describes how to initialise the system, which is required after installation and after a system reboot.
After bootstrapping, and after a reboot, the software and hardware of the station needs to be explicitly initialised. Note that the docker containers do restart automatically at system boot.
The docker containers will automatically restart after a system reboot. But the Linux kernel will lose its required custom settings required by our ELK stack. To reconfigure the kernel parameters, run::
The following commands start all the software devices to control the station hardware, and initialise the hardware with the configured default settings. Go to http://localhost:8888, start a new *Station Control* notebook, and initiate the software boot sequence::
make start elk-configure-host
make restart elk
We can now initialise the station configuration, that is, start all the software devices to control the station hardware, and to initialise the hardware with the configured default settings. Go to http://localhost:8888, start a new *Station Control* notebook, and initiate the software boot sequence::
# reset our boot device
# reset our boot device
boot.off()
boot.off()
...
@@ -76,3 +71,13 @@ We can now initialise the station configuration, that is, start all the software
...
@@ -76,3 +71,13 @@ We can now initialise the station configuration, that is, start all the software
print("Done initialising station.")
print("Done initialising station.")
else:
else:
print(f"Failed to initialise station: {boot.initialisation_status_R}")
print(f"Failed to initialise station: {boot.initialisation_status_R}")
ELK
````
The ELK stack requires some kernel settings to be tuned, before it will start. Although ``make bootstrap`` configures the kernel, these settings will not stick after a reboot. You will need to run either::
make start elk-configure-host
make restart elk
after reboot, or configure your system to set ``sysctl -w vm.max_map_count=262144`` (or higher) as root during boot.