This commit is contained in:
Robin Appelman 2025-06-02 22:46:33 +02:00
commit b656adf134

View file

@ -6,10 +6,13 @@ A basic NBD block server with a single gimmick.
## Why
The main reason for using this over any other NBD server is its ability to reload the config without affecting any existing connection.
The main reason for using this over any other NBD server is its ability to
reload the config without affecting any existing connection.
This allows for booting a device off an NBD device and changing the export configuration to point to a new root image. Without affecting the booted devices.
Then, when the device is rebooted, it will connect to the new root image.
This allows for booting a device off an NBD device and changing the export
configuration to point to a new root image. Without affecting the booted
devices. Then, when the device is rebooted, it will connect to the new root
image.
## How
@ -30,8 +33,9 @@ Run the server with
cube -c config.toml
```
When the configuration is changed, it can be reloaded by sending `SIGHUP` to the server.
When the configuration is changed, it can be reloaded by sending `SIGHUP` to the
server.
```bash
pkill -sighup cube
```
```