Systemd service

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

[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