elective-stereophonic
elective-stereophonic
How to properly shutdown your NXT node
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.11.15 | Latest Experimental Nxt Client: Nxt 1.12.0e

Author Topic: How to properly shutdown your NXT node  (Read 1552 times)

Riker

  • Core Dev
  • Hero Member
  • *****
  • Karma: +439/-42
  • Offline Offline
  • Posts: 1795
    • View Profile
How to properly shutdown your NXT node
« on: April 18, 2017, 11:47:01 am »

The NXT node uses a Java mechanism called "Shutdown Hook" to close the database and perform necessary cleanup before shutting down the Java process.
Killing the Java process without letting the shutdown hook execute may result in database corruption.

Therefore, when shutting down the NXT node, always use one of the following methods:
1. On GUI environment, use the "Shutdown" menu item from the system tray icon.
2. From the command line use the
Code: [Select]
kill <pid> command.

If possible, never use the following methods for shutting down the node:
Code: [Select]
kill -9 <pid>or kill the process from the Windows task manager or using Mac OS/X similar function.
Logged
NXT Core Dev
Account: NXT-HBFW-X8TE-WXPW-DZFAG
Public Key: D8311651 Key fingerprint: 0560 443B 035C EE08 0EC0  D2DD 275E 94A7 D831 1651

Jean-Luc

  • Core Dev
  • Hero Member
  • *****
  • Karma: +816/-81
  • Offline Offline
  • Posts: 1610
    • View Profile
Re: How to properly shutdown your NXT node
« Reply #1 on: April 18, 2017, 12:00:35 pm »

If you started the server from the command line in a terminal, pressing Ctrl-C there should also send the proper kill signal for a clean shutdown.
Logged
GPG key fingerprint: 263A 9EB0 29CF C77A 3D06  FD13 811D 6940 E1E4 240C
NXT-X4LF-9A4G-WN9Z-2R322
 

elective-stereophonic
elective-stereophonic
assembly
assembly