From 99ae2cb70c7b05300f7eb80235aa72f998077537 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Fri, 29 Sep 2017 10:15:13 +0200
Subject: [PATCH] [fix] return exit values on daemon status. It haven't been
 migrate with TS migration.

---
 app/modules/daemon.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/modules/daemon.ts b/app/modules/daemon.ts
index f708b77a4..5d2b77cb2 100644
--- a/app/modules/daemon.ts
+++ b/app/modules/daemon.ts
@@ -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)
         }
       }
     }, {
-- 
GitLab