Skip to content
Snippets Groups Projects
Commit 99ae2cb7 authored by Moul's avatar Moul
Browse files

[fix] return exit values on daemon status.

It haven't been migrate with TS migration.
parent 5009e4e2
No related branches found
No related tags found
1 merge request!1128[fix] return exit values on daemon status.
...@@ -69,8 +69,10 @@ module.exports = { ...@@ -69,8 +69,10 @@ module.exports = {
const pid = server.getDaemon().status() const pid = server.getDaemon().status()
if (pid) { if (pid) {
console.log('Duniter is running using PID %s.', pid) console.log('Duniter is running using PID %s.', pid)
process.exit(0)
} else { } else {
console.log('Duniter is not running.') console.log('Duniter is not running.')
process.exit(2)
} }
} }
}, { }, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment