Skip to content

Systemd Service Files

Marko Petrlić edited this page Oct 11, 2022 · 2 revisions

Validator

location: /etc/systemd/system/ternoa.service

[Unit]
Description=Ternoa Validator Node By Ternoa.com

[Service]
ExecStart=/usr/bin/ternoa --name new-validator --chain mainnet -d /block/chain/node-data --state-pruning archive --validator
WorkingDirectory=/usr/bin
KillSignal=SIGINT
User=root
Restart=on-failure
LimitNOFILE=10240
SyslogIdentifier=ternoa

[Install]
WantedBy=multi-user.target

Public

location: /etc/systemd/system/ternoa.service

[Unit]
Description=Ternoa Public Node By Ternoa.com

[Service]
ExecStart=/usr/bin/ternoa --name new-public --chain mainnet -d /block/chain/node-data --state-pruning archive --ws-external --rpc-external --rpc-cors all --rpc-max-response-size 1000
WorkingDirectory=/usr/bin
KillSignal=SIGINT
User=root
Restart=on-failure
LimitNOFILE=10240
SyslogIdentifier=ternoa

[Install]
WantedBy=multi-user.target

Bootnode

location: /etc/systemd/system/ternoa.service

[Unit]
Description=Ternoa Boot Node By Ternoa.com

[Service]
ExecStart=/usr/bin/ternoa --name ternoa-boot --chain mainnet -d /block/chain/node-data --state-pruning archive --validator --node-key XXX
WorkingDirectory=/usr/bin
KillSignal=SIGINT
User=root
Restart=on-failure
LimitNOFILE=10240
SyslogIdentifier=ternoa

[Install]
WantedBy=multi-user.target