mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +02:00
status logging
This commit is contained in:
parent
fd0dda795c
commit
95d02f5959
1 changed files with 2 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ async fn daemon_async(mut config: Config) -> Result<(), DaemonError> {
|
|||
)),
|
||||
])
|
||||
.map_err(DaemonError::Notify)?;
|
||||
info!("ready");
|
||||
|
||||
let reload_signal = signal(SignalKind::hangup()).map_err(DaemonError::Signal)?;
|
||||
let reload_signal = SignalStream::new(reload_signal).map(|_| Event::Reload);
|
||||
|
|
@ -90,6 +91,7 @@ async fn daemon_async(mut config: Config) -> Result<(), DaemonError> {
|
|||
)),
|
||||
])
|
||||
.map_err(DaemonError::Notify)?;
|
||||
info!("reloaded");
|
||||
}
|
||||
Event::Info => {
|
||||
for namespace in &state.namespaces {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue