Skip to content
Snippets Groups Projects
Commit 7df35aae authored by Cédric Moreau's avatar Cédric Moreau Committed by GitHub
Browse files

Merge pull request #1128 from duniter/status_exit_return

[fix] return exit values on daemon status.
parents 45601098 99ae2cb7
No related branches found
No related tags found
No related merge requests found
...@@ -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