server: use generalized commando socket for worker tasks commands
Allows to extend the use of that socket in the future, e.g., for log rotate re-open signaling. To reflect this we use a more general name, and change the commandos to a more clear namespace. Both are actually somewhat a breaking change, but the single real world issue it should be able to cause is, that one won't be able to stop task from older daemons, which still use the older abstract socket name format. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -42,8 +42,10 @@ fn worker_task_abort() -> Result<(), Error> {
|
||||
let mut rt = tokio::runtime::Runtime::new().unwrap();
|
||||
rt.block_on(async move {
|
||||
|
||||
let mut commando_sock = server::CommandoSocket::new(server::our_ctrl_sock());
|
||||
|
||||
let init_result: Result<(), Error> = try_block!({
|
||||
server::create_task_control_socket()?;
|
||||
server::register_task_control_commands(&mut commando_sock)?;
|
||||
server::server_state_init()?;
|
||||
Ok(())
|
||||
});
|
||||
|
Reference in New Issue
Block a user