Skip to content

Commit

Permalink
Merge pull request doy#155 from wfdewith/make-dirs
Browse files Browse the repository at this point in the history
Make directories when not daemonized
  • Loading branch information
doy authored Apr 20, 2024
2 parents 77eeb5b + c0f924d commit bdf255d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/bin/rbw-agent/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ impl Drop for StartupAck {
}

pub fn daemonize() -> anyhow::Result<StartupAck> {
rbw::dirs::make_all()?;

let stdout = std::fs::OpenOptions::new()
.append(true)
.create(true)
Expand Down
2 changes: 2 additions & 0 deletions src/bin/rbw-agent/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ fn real_main() -> anyhow::Result<()> {
.nth(1)
.map_or(false, |arg| arg == "--no-daemonize");

rbw::dirs::make_all()?;

let startup_ack = if no_daemonize {
None
} else {
Expand Down

0 comments on commit bdf255d

Please sign in to comment.