Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

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
......@@ -69,8 +69,10 @@ module.exports = {
const pid = server.getDaemon().status()
if (pid) {
console.log('Duniter is running using PID %s.', pid)
process.exit(0)
} else {
console.log('Duniter is not running.')
process.exit(2)
}
}
}, {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment