I am running my radicle-seed-node
as a systemd
service and have parameterised most of it.
Here is the radicle.service
file if you’re interested.
[Unit]
Description=Radicle Seed Node
[Service]
StandardInput=file:/home/radicle/.radicle-seed/secret.key
User=radicle
Group=radicle
Restart=always
RestartSec=1
Environment="HOME_DIR=/home/radicle"
Environment="BIN_DIR=${HOME_DIR}/binaries"
Environment="ROOT_DIR=${HOME_DIR}/.radicle-seed"
Environment="SECRET_KEY=secret.key"
Environment="MY_IP=<my-ip>"
Environment="PEER_PORT=12345"
Environment="HTTP_PORT=80"
Environment="NAME=w3m"
Environment="DESC=...web3 networks..."
Environment="PUBLIC_ADDR=seed.w3m.one"
Environment="RUST_BACKTRACE=1"
StandardInput=file:/home/radicle/.radicle-seed/secret.key
ExecStart=/home/radicle/binaries/radicle-seed-node \
--root ${ROOT_DIR} \
--peer-listen ${MY_IP}:${PEER_PORT} \
--http-listen ${MY_IP}:${HTTP_PORT} \
--name ${NAME} \
--description ${DESC} \
--public-addr ${PUBLIC_ADDR}:${PEER_PORT}
[Install]
WantedBy=multi-user.target