mirror of
https://codeberg.org/icewind/cube.git
synced 2026-06-03 12:04:10 +02:00
fmt
This commit is contained in:
parent
5c083bbd4e
commit
b656adf134
1 changed files with 9 additions and 5 deletions
12
README.md
12
README.md
|
|
@ -6,10 +6,13 @@ A basic NBD block server with a single gimmick.
|
||||||
|
|
||||||
## Why
|
## 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.
|
This allows for booting a device off an NBD device and changing the export
|
||||||
Then, when the device is rebooted, it will connect to the new root image.
|
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
|
## How
|
||||||
|
|
||||||
|
|
@ -30,7 +33,8 @@ Run the server with
|
||||||
cube -c config.toml
|
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
|
```bash
|
||||||
pkill -sighup cube
|
pkill -sighup cube
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue