瀏覽代碼

make status command exit with proper code

Phil Dier 10 年之前
父節點
當前提交
0e73c1bf78
共有 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 -p $PID_FILE $NAME
+    exit $?
     ;;
   restart|force-reload)
     if [ -f "$PID_FILE" ]; then