1 stable release
2.1.0 | May 25, 2020 |
---|---|
1.9.0 |
|
0.9.0 |
|
#22 in #maintain
65 downloads per month
20KB
192 lines
darwinia-sync
Setup
- Use crates.io
cargo install darwinia-sync
- Compile from source
git clone https://github.com/AurevoirXavier/darwinia-sync.git cd darwinia-sync cargo build --release cp target/release/darwinia-sync ~/.local/bin # or somewhere in your $PATH
Usage
Running Example
# normal
darwinia-sync -l -s /home/xavier/crab/crab.sh
# pm2
pm2 start darwinia-sync -- -l -s /home/xavier
# systemd
systemctl start crab.service
crab.sh
Script Example
/home/xavier/crab/darwinia \
--unsafe-rpc-external \
--unsafe-ws-external \
--validator \
--base-path /home/xavier/crab/data/xavier \
--name Xavier \
--rpc-cors all
crab.service
Systemd Example
[Unit]
Description=Crab
[Service]
ExecStart=/home/xavier/.cargo/bin/darwinia-sync -l -s /home/xavier/crab/crab.sh
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
Help
λ darwinia-sync --help
darwinia-sync 0.7.0
Xavier Lau <c.estlavie@icloud>
Darwinia Maintain Tool
USAGE:
darwinia-sync [FLAGS] [OPTIONS]
FLAGS:
-l, --log Syncing Log
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-s, --script <PATH> Darwinia Boot Script
Dependencies
~6–14MB
~168K SLoC