diff --git a/bin/daemon b/bin/daemon index 723c50b7b26064ca17680fcd7f72df8278793aa7..ad2748e694a240592b182c4218b5dda0783ebd18 100755 --- a/bin/daemon +++ b/bin/daemon @@ -20,10 +20,11 @@ switch (process.argv[2]) { case "status": if (daemon.status()) { console.log('Duniter daemon status: running'); + process.exit(0) } else { console.log('Duniter daemon status: stopped'); + process.exit(2) } - break; case "sync": case "reset":