Skip to content

Instantly share code, notes, and snippets.

@yangl1996
Last active October 30, 2023 01:59
Show Gist options
  • Select an option

  • Save yangl1996/9da1ce4a564e64bdd6ef0c8738e4606d to your computer and use it in GitHub Desktop.

Select an option

Save yangl1996/9da1ce4a564e64bdd6ef0c8738e4606d to your computer and use it in GitHub Desktop.
FreeBSD rc.d script for Reth
#!/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