Skip to content

Commit

Permalink
在install的时候创建/etc/reach/ipc目录 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
fslongjin authored Feb 2, 2024
1 parent dfd3fd9 commit 7c7ad4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ fmt-check:
.PHONY: install
install:
mkdir -p $(INSTALL_DIR)/etc/reach/system
mkdir -p $(INSTALL_DIR)/etc/reach/ipc
cp ./parse_test/shell.service $(INSTALL_DIR)/etc/reach/system/shell.service
RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) install --path . --no-track --root $(INSTALL_DIR) --force
2 changes: 1 addition & 1 deletion src/systemctl/listener/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl Systemctl {
let ret = unsafe { libc::mkfifo(path.as_ptr(), 0o666) };
if ret != 0 {
// 创建管道失败打日志
panic!("create ctl pipe failed");
panic!("create ctl pipe failed, err: {ret}");
}
}
}
Expand Down

0 comments on commit 7c7ad4f

Please sign in to comment.