From cf56fb9d1806015f39c15a10e91c83fbfcf73a1e Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sun, 19 Nov 2023 19:34:40 +0800 Subject: [PATCH 1/2] Fix using journalctl to check the log of ckb.service --- devtools/init/linux-systemd/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/init/linux-systemd/README.md b/devtools/init/linux-systemd/README.md index 576d1d55c2..a1e7027387 100644 --- a/devtools/init/linux-systemd/README.md +++ b/devtools/init/linux-systemd/README.md @@ -61,7 +61,7 @@ sudo systemctl enable ckb.service If ckb doesn't seem to start properly you can view the logs to figure out the problem: ```bash -journalctl --boot -u ckb.service +sudo journalctl --boot -u ckb.service ``` Following the similar instructions to start a miner: From 8158676db6670608521b17ef26239e72abe1f1a2 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Sun, 19 Nov 2023 19:49:48 +0800 Subject: [PATCH 2/2] Add instruction to check the status of ckb systemd service --- devtools/init/linux-systemd/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devtools/init/linux-systemd/README.md b/devtools/init/linux-systemd/README.md index a1e7027387..b589cd1e22 100644 --- a/devtools/init/linux-systemd/README.md +++ b/devtools/init/linux-systemd/README.md @@ -58,6 +58,12 @@ Start the node automatically on boot if you like: sudo systemctl enable ckb.service ``` +Check ckb's status: + +```bash +sudo systemctl status ckb.service +``` + If ckb doesn't seem to start properly you can view the logs to figure out the problem: ```bash