Browse Source

make status command exit with proper code

Phil Dier 10 năm trước cách đây
mục cha
commit
0e73c1bf78
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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