-
-
Save yangl1996/9da1ce4a564e64bdd6ef0c8738e4606d to your computer and use it in GitHub Desktop.
FreeBSD rc.d script for Reth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # PROVIDE: reth | |
| # REQUIRE: FILESYSTEMS netif pflog pfsync routing | |
| . /etc/rc.subr | |
| name="reth" | |
| rcvar=${name}_enable | |
| pidfile="/var/run/${name}.pid" | |
| command="/usr/sbin/daemon" | |
| command_args="-c -f -P ${pidfile} -r /tank/ethereum/bin/reth node --chain mainnet --datadir /tank/ethereum/reth --http --http.api all --authrpc.jwtsecret /tank/ethereum/reth/jwt.hex --authrpc.addr 127.0.0.1 --authrpc.port 8551 --metrics 127.0.0.1:9001" | |
| load_rc_config $name | |
| run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment