systemd
script, like so (change accordingly):
[Unit]
Description=Yarn Pod
After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=10
StartLimitBurst=5
StartLimitInterval=100
User=yarnd
Group=yarnd
ExecStart=/usr/local/src/yarn/yarnd -OR -b 127.0.0.1:8080 --fetch-interval "@every 1m"
EnvironmentFile=/usr/local/etc/yarnd_env
[Install]
WantedBy=multi-user.target
The
yarnd_env
file has something like this:
COOKIE_SECRET=
API_SIGNING_KEY=
MAGICLINK_SECRET=
ADMIN_USER=
ADMIN_EMAIL=
SMTP_FROM=
SMTP_USER=
SMTP_HOST=
SMTP_PASS=
YARND_TOKEN=
STORE=
DATA=
BASE_URL=
With the right values in it.