Skip to content
Snippets Groups Projects

[fix] return exit values on daemon status.

Merged Cédric Moreau requested to merge status_exit_return into dev
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
+ 2
0
@@ -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)
}
}
}, {
Loading