1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 13:23:57 +02:00
openwrt-packages/net/geth/files/geth.init
Mislav Novakovic 8e6a40aee2 geth: add a new package
The package was tested on raspberry pi 3. Geth needs about two hours to
fully sync the first try and uses an additional 250Mb of storage.

Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
2018-07-06 12:47:00 +02:00

16 lines
272 B
Bash

#!/bin/sh /etc/rc.common
START=90
STOP=10
USE_PROCD=1
PROG=/usr/bin/geth
start_service() {
procd_open_instance
procd_set_param command ${PROG}
procd_append_param command --syncmode "light" --cache 1024
procd_set_param respawn
procd_close_instance
}