idelse
  • Welcome to idelse
  • idena-rpc
    • Introduction
    • Run Idena as systemd service
    • How to install
    • Repository
  • idena-js
    • Quick start
    • Repository
  • idena-pocket
    • Introduction
    • Repository
  • idena-ledger
    • How to use Ledger Nano
    • Repository
  • idena-docker
    • Introduction
Powered by GitBook
On this page

Was this helpful?

  1. idena-rpc

Run Idena as systemd service

PreviousIntroductionNextHow to install

Last updated 4 years ago

Was this helpful?

Create a file /etc/systemd/system/idena.service. More info about :

[Unit]
Description=idena

[Service]
Type=simple
ExecStart=/usr/local/bin/idena --config=/path/to/config.json --port=40405 --rpcport=9009 --datadir=/path/to/datadir
RemainAfterExit=no
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

2. sudo chmod 644 /etc/systemd/system/idena.service

3. Start idena service: sudo systemctl start idena

4. If you want to stop idena service: sudo systemctl stop idena

5. If you want to restart idena service: sudo systemctl restart idena

6. If you want to retrieve logs and status of node:sudo systemctl status idena

7. Enable idena service on server reboot: sudo systemctl enable idena

systemd settings