darwinia-network / bridger

Relayer client implementation for Darwinia LCMP protocols.
https://rust-docs.darwinia.network/bridger
GNU General Public License v3.0
11 stars 10 forks source link

Better services management #103

Closed wuminzhe closed 3 years ago

wuminzhe commented 3 years ago

Run bridger in daemon mode

> bridger run -d

Show running status

> bridger status
ID      SERVICE NAME                            STATUS
1       ethereum to darwinia relay              runing
2       ethereum to darwinia redeem             stopped
3       ethereum to darwinia guard              stopped
4       ethereum tracking                       runing
5       darwinia tracking                       runing

Start & stop service

> bridger start 2
> bridger stop 2
wuminzhe commented 3 years ago

Start specific services

> bridger ls
ID      SERVICE NAME                            
1       ethereum to darwinia relay 
2       ethereum to darwinia redeem
3       ethereum to darwinia guard
4       ethereum tracking
5       darwinia tracking

> bridger run -d --services "1 3 4"
wuminzhe commented 3 years ago
fewensa commented 3 years ago

Close it. after refactoring, most of these problems will be solved.