mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
script/research/seedd: updated config with default ports and added lilith init files
This commit is contained in:
1
script/research/seedd/init/lilith.confd
Normal file
1
script/research/seedd/init/lilith.confd
Normal file
@@ -0,0 +1 @@
|
||||
USER="lilith"
|
||||
35
script/research/seedd/init/lilith.initd
Normal file
35
script/research/seedd/init/lilith.initd
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2022 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
PWHOME="$(getent passwd $USER | awk -F: '{ print $6 }')"
|
||||
|
||||
ebegin "Starting lilith"
|
||||
env TERM="xterm" \
|
||||
start-stop-daemon \
|
||||
--start \
|
||||
--make-pidfile \
|
||||
--pidfile /var/run/lilith.pid \
|
||||
--background \
|
||||
--user $USER \
|
||||
--env HOME="${PWHOME:-/home/$USER}" \
|
||||
--name lilith \
|
||||
--exec /usr/bin/screen -- -D -m -S lilith /usr/local/bin/lilith
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping lilith"
|
||||
# Because we've daemonized with screen, we need to replace the PID file
|
||||
# with the real PID of the program
|
||||
pgrep -P $(cat /var/run/lilith.pid) > /var/run/lilith.pid
|
||||
|
||||
start-stop-daemon --stop --signal 15 \
|
||||
--pidfile /var/run/lilith.pid
|
||||
eend $?
|
||||
}
|
||||
@@ -10,17 +10,23 @@
|
||||
#url = "tcp://127.0.0.1"
|
||||
|
||||
## Per-network settings
|
||||
#[network."darkfid"]
|
||||
#port = 7650
|
||||
#[network."darkfid_sync"]
|
||||
#port = 33032
|
||||
#seeds = []
|
||||
#peers = []
|
||||
|
||||
## Per-network settings
|
||||
#[network."darkfid_consensus"]
|
||||
#port = 33033
|
||||
#seeds = []
|
||||
#peers = []
|
||||
|
||||
#[network."ircd"]
|
||||
#port = 8760
|
||||
#port = 25551
|
||||
#seeds = []
|
||||
#peers = []
|
||||
|
||||
#[network."taud"]
|
||||
#port = 9870
|
||||
#port = 23331
|
||||
#seeds = []
|
||||
#peers = []
|
||||
|
||||
Reference in New Issue
Block a user