Skip to content

Commit 2b6f431

Browse files
authored
Update USAGE.md
1 parent 02c4c09 commit 2b6f431

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

USAGE.md

+35-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,40 @@ modify config file in packages/bundler/localconfig/bundler_sepolia.config.json o
5353
```
5454

5555

56+
## 用守护进程的方式运行
57+
58+
### 添加守护进程
59+
```
60+
sudo vim /etc/systemd/system/taikobundler.service
61+
62+
[Unit]
63+
Description=taiko_bundler
64+
After=network.target
65+
66+
[Service]
67+
WorkingDirectory=/home/ubuntu/tools/bundler
68+
ExecStart=nohup yarn run bundler-taiko > bundler_taiko.log 2>&1 &
69+
Restart=always # 或者选择 on-failure、on-abort 等
70+
RestartSec=5s # 设置重启延时,单位秒
71+
72+
[Install]
73+
WantedBy=multi-user.target
74+
75+
```
76+
77+
### 启动:
78+
sudo systemctl daemon-reload
79+
sudo systemctl start taikobundler
80+
sudo systemctl enable taikobundler
81+
82+
### 查看状态:
83+
systemctl status taikobundler.service
84+
85+
### 查看log
86+
journalctl -u taikobundler.service
87+
88+
89+
## 普通方式运行
5690
start bundler to handle incoming userops
5791
```
5892
yarn bundler-sepolia
@@ -84,4 +118,4 @@ tail -f bundler_sepolia.log
84118
4. 检查bundler服务
85119
```
86120
curl -X POST --url https://bundler-taiko.tokenbank.com/rpc --header 'accept: application/json' --header 'content-type: application/json' --data ' {"id": 1,"jsonrpc": "2.0", "method": "eth_supportedEntryPoints"}'
87-
```
121+
```

0 commit comments

Comments
 (0)