nanocurrency / nano-node

Nano is digital currency. Its ticker is: XNO and its currency symbol is: Ӿ
https://nano.org
BSD 3-Clause "New" or "Revised" License
3.48k stars 786 forks source link

nano_node should allow to write the process id to a pid file #4682

Closed milahu closed 1 month ago

milahu commented 1 month ago

Summary

expected:

nano_node --daemon --pid_file /tmp/nano_node.pid

nano_node should delete the pidfile on exit

What problem would be solved by this feature?

a pidfile makes it easier to manage the daemon

for example basicswap expects the node daemon to create a PID file

Are there any previous requests for this feature?

no

Do you have a suggested solution?

yes

If this feature is approved, would you be willing to submit a pull request with the solution?

I would not

Possible solution

No response

Supporting files

No response

clemahieu commented 1 month ago

Added in https://github.com/nanocurrency/nano-node/pull/4685