mirror of
https://github.com/agersant/polaris
synced 2024-11-10 02:04:13 +00:00
Fixed a bug where systemd init error would not display
This commit is contained in:
parent
c57583d1d4
commit
1812bedfd2
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ fn daemonize<T: AsRef<Path>>(foreground: bool, pid_file_path: T) -> Result<(), E
|
|||
#[cfg(unix)]
|
||||
fn notify_ready() -> Result<(), Error> {
|
||||
if let Ok(true) = sd_notify::booted() {
|
||||
sd_notify::notify(true, &[sd_notify::NotifyState::Ready]).map_err(Error::SystemDNotify);
|
||||
sd_notify::notify(true, &[sd_notify::NotifyState::Ready]).map_err(Error::SystemDNotify)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue