Inside the system: resources, kernel, processes / Stage 4 of 12 · step 9 of 10
A kernel setting disappears
Not running
Starting
Situation
The lab-sensors service — the sensor-hub application — receives the warehouse sensor readings over UDP.
Last week it stopped starting. A colleague raised a kernel parameter for it with a command, and the service
worked. The server was rebooted overnight, and lab-sensors fails to start again. The colleague insists the
setting was saved to a file.
There is no need to reboot the machine: at boot the kernel parameters come from the same files, in the same
order, as with sudo sysctl --system.
Task
- The
lab-sensorsservice is running, enabled at boot and answerscurl http://127.0.0.1:8126/health. The application code stays the same. - The value survives a reboot:
sudo sysctl --systemsets the parameter the service needs, and takes it from a file in/etc. - The other parameters from the settings files stay as they were — both in the files and in the running kernel.
There is no internet on the machine; everything you need is already installed. Run administrative commands with
sudo.
Lab goals
0 of 3-
The lab-sensors service is running, enabled at boot and answering; the application code is unchanged — not checked yet
-
sudo sysctl --system sets net.core.rmem_max to at least 8388608 (8 MiB) — from a file in /etc — not checked yet
-
The other parameters from the settings files are unchanged — in the files and in the kernel — not checked yet
Hints
0 of 3 open · they open one at a time
Hint 1
Show the solution
after 3 failed checks