The docs/packaging were largely un-rebranded Hush3 content, with several docs stating facts that are wrong for DragonX. This rewrites them against the verified DragonX source state. Corrections (not just branding): - PoW: RandomX (CPU), not Equihash/ASIC — README, overview.md, randomx.md - Privacy: private from genesis (ac_private=1, Sapling@height1), not "as of block 340000" — overview.md, payment-api.md - Removed the false "coinbase must be shielded" consensus claim (shield-coinbase.md, payment-api.md); coinbase is directly spendable - Fixed default fee 0.0001 (was 0.0010000, 10x); stratum port 22769 (was 19031) - datadir ~/.hush/DRAGONX, DRAGONX.conf, dragonxd/dragonx-cli/dragonx-tx, git.dragonx.is throughout; branch model dev->dragonx - Softened the inherited dPoW reorg claim (no live DragonX notary infra) Packaging: fix build-debian-package.sh + gen-manpages.sh to use the dragonx binaries/manpages; rename bash-completions to dragonx*; drop hush-arrakis-chain from the package. Keep /usr/share/hush (hardcoded in the binary for params). Also: README links/logo, ObsidianDragon + SilentDragonXAndroid wallets, networking/init/dev-process/contrib/util rebrand, and leftover helper scripts. Delete legacy duplicates (hushd.* init/service, HUSH3.conf examples, OLD_WALLETS.md, hsc.md) and rename hush-uri.bat -> dragonx-uri.bat. Out of scope (noted, not changed): historical changelog/copyright, the Hush mainnet airdrop snapshot, seed data files, depends/ source mirrors, and the in-code strCurrencyUnits="HUSH". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
description "DragonX Daemon"
|
|
|
|
start on runlevel [2345]
|
|
stop on starting rc RUNLEVEL=[016]
|
|
|
|
env HUSHD_BIN="/usr/bin/dragonxd"
|
|
env HUSHD_USER="hush"
|
|
env HUSHD_GROUP="hush"
|
|
env HUSHD_PIDDIR="/var/run/dragonxd"
|
|
# upstart can't handle variables constructed with other variables
|
|
env HUSHD_PIDFILE="/var/run/dragonxd/dragonxd.pid"
|
|
env HUSHD_CONFIGFILE="/etc/dragonx/DRAGONX.conf"
|
|
env HUSHD_DATADIR="/var/lib/dragonxd"
|
|
|
|
expect fork
|
|
|
|
respawn
|
|
respawn limit 5 120
|
|
kill timeout 60
|
|
|
|
pre-start script
|
|
# this will catch non-existent config files
|
|
# dragonxd will check and exit with this very warning, but it can do so
|
|
# long after forking, leaving upstart to think everything started fine.
|
|
# since this is a commonly encountered case on install, just check and
|
|
# warn here.
|
|
if ! grep -qs '^rpcpassword=' "$HUSHD_CONFIGFILE" ; then
|
|
echo "ERROR: You must set a secure rpcpassword to run dragonxd."
|
|
echo "The setting must appear in $HUSHD_CONFIGFILE"
|
|
echo
|
|
echo "This password is security critical to securing wallets "
|
|
echo "and must not be the same as the rpcuser setting."
|
|
echo "You can generate a suitable random password using the following"
|
|
echo "command from the shell:"
|
|
echo
|
|
echo "bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo'"
|
|
echo
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p "$HUSHD_PIDDIR"
|
|
chmod 0755 "$HUSHD_PIDDIR"
|
|
chown $HUSHD_USER:$HUSHD_GROUP "$HUSHD_PIDDIR"
|
|
chown $HUSHD_USER:$HUSHD_GROUP "$HUSHD_CONFIGFILE"
|
|
chmod 0660 "$HUSHD_CONFIGFILE"
|
|
end script
|
|
|
|
exec start-stop-daemon \
|
|
--start \
|
|
--pidfile "$HUSHD_PIDFILE" \
|
|
--chuid $HUSHD_USER:$HUSHD_GROUP \
|
|
--exec "$HUSHD_BIN" \
|
|
-- \
|
|
-pid="$HUSHD_PIDFILE" \
|
|
-conf="$HUSHD_CONFIGFILE" \
|
|
-datadir="$HUSHD_DATADIR" \
|
|
-disablewallet \
|
|
-daemon
|
|
|