浏览代码

Merge pull request #2205 from raventools/bug/make-status-command-return-correct-exitcode

make status command exit with proper code
Torkel Ödegaard 10 年之前
父节点
当前提交
f3ba491a73
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packaging/rpm/init.d/grafana-server

+ 1 - 0
packaging/rpm/init.d/grafana-server

@@ -138,6 +138,7 @@ case "$1" in
     ;;
     ;;
   status)
   status)
     status -p $PID_FILE $NAME
     status -p $PID_FILE $NAME
+    exit $?
     ;;
     ;;
   restart|force-reload)
   restart|force-reload)
     if [ -f "$PID_FILE" ]; then
     if [ -f "$PID_FILE" ]; then