[crux-commits] ports/contrib (refs/remotes/origin/3.6): prometheus: initial commit, version 2.24.0

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:04 UTC 2021


commit 4c3671d5603762567bab785a2d4b0bb2622c7e5a
Author: Tim Biermann <tbier at posteo.de>
Date:   Fri Jan 8 00:08:10 2021 +0000

    prometheus: initial commit, version 2.24.0

diff --git a/prometheus/.footprint b/prometheus/.footprint
new file mode 100644
index 000000000..e608a43ca
--- /dev/null
+++ b/prometheus/.footprint
@@ -0,0 +1,159 @@
+drwxr-xr-x	root/root	etc/
+drwxr-xr-x	root/root	etc/conf.d/
+-rw-r--r--	root/root	etc/conf.d/prometheus
+drwxr-xr-x	root/root	etc/prometheus/
+drwxr-xr-x	root/root	etc/prometheus/console_libraries/
+-rw-r--r--	root/root	etc/prometheus/console_libraries/menu.lib
+-rw-r--r--	root/root	etc/prometheus/console_libraries/prom.lib
+drwxr-xr-x	root/root	etc/prometheus/consoles/
+-rw-r--r--	root/root	etc/prometheus/consoles/index.html.example
+-rw-r--r--	root/root	etc/prometheus/consoles/node-cpu.html
+-rw-r--r--	root/root	etc/prometheus/consoles/node-disk.html
+-rw-r--r--	root/root	etc/prometheus/consoles/node-overview.html
+-rw-r--r--	root/root	etc/prometheus/consoles/node.html
+-rw-r--r--	root/root	etc/prometheus/consoles/prometheus-overview.html
+-rw-r--r--	root/root	etc/prometheus/consoles/prometheus.html
+-rw-r--r--	root/root	etc/prometheus/prometheus.yml
+drwxr-xr-x	root/root	etc/rc.d/
+-rwxr-xr-x	root/root	etc/rc.d/prometheus
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/prometheus
+-rwxr-xr-x	root/root	usr/bin/promtool
+drwxr-xr-x	root/root	usr/share/
+drwxr-xr-x	root/root	usr/share/prometheus/
+drwxr-xr-x	root/root	usr/share/prometheus/web/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/css/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/alerts.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/config.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/graph.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/prom_console.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/prometheus.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/rules.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/css/targets.css
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/img/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/img/ajax-loader.gif
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/img/favicon.ico
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/js/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/alerts.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/config.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/js/graph/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/graph/graph_template.handlebar
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/graph/index.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/prom_console.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/js/targets.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/asset-manifest.json
+-rwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/favicon.ico
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/index.html
+-rwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/manifest.json
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/precache-manifest.e7631c901184404addd0c5b9efbcacad.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/service-worker.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/static/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/static/css/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/css/2.300141ce.chunk.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/css/2.300141ce.chunk.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/css/main.1087ae1e.chunk.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/css/main.1087ae1e.chunk.css.map
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/react/static/js/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/2.fe63b4d5.chunk.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/2.fe63b4d5.chunk.js.LICENSE.txt
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/2.fe63b4d5.chunk.js.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/main.d06fe2ae.chunk.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/main.d06fe2ae.chunk.js.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/runtime-main.7e00e584.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/react/static/js/runtime-main.7e00e584.js.map
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-grid.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-grid.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-grid.min.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-grid.min.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-reboot.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-reboot.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-reboot.min.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap-reboot.min.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap.css.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap.min.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/css/bootstrap.min.css.map
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.bundle.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.bundle.js.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.bundle.min.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.bundle.min.js.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.js.map
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.min.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap-4.5.2/js/bootstrap.min.js.map
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap3-typeahead/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap3-typeahead/bootstrap3-typeahead.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/css/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/css/bootstrap-glyphicons.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/css/bootstrap-glyphicons.min.css
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-brands-400.eot
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-brands-400.svg
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-brands-400.ttf
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-brands-400.woff
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-brands-400.woff2
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-regular-400.eot
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-regular-400.svg
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-regular-400.ttf
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-regular-400.woff
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-regular-400.woff2
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-solid-900.eot
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-solid-900.svg
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-solid-900.ttf
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-solid-900.woff
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/fontawesome/fa-solid-900.woff2
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/glyphicons-halflings-regular.eot
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/glyphicons-halflings-regular.svg
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/glyphicons-halflings-regular.ttf
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/glyphicons-halflings-regular.woff
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/fonts/glyphicons/glyphicons-halflings-regular.woff2
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/maps/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/maps/glyphicons-fontawesome.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/maps/glyphicons-fontawesome.less
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/bootstrap4-glyphicons/maps/glyphicons-fontawesome.min.css
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/eonasdan-bootstrap-datetimepicker/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/fuzzy/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/fuzzy/fuzzy.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/js/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/js/jquery-3.5.1.min.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/js/jquery.hotkeys.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/js/jquery.selection.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/js/popper.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/moment/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/moment/moment-timezone-with-data.min.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/moment/moment.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/mustache/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/mustache/mustache.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/rickshaw.min.css
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/rickshaw.min.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/vendor/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/vendor/d3.layout.min.js
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/static/vendor/rickshaw/vendor/d3.v3.js
+drwxr-xr-x	root/root	usr/share/prometheus/web/ui/templates/
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/_base.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/alerts.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/config.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/flags.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/graph.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/rules.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/service-discovery.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/status.html
+-rw-r--r--	root/root	usr/share/prometheus/web/ui/templates/targets.html
+drwxr-xr-x	root/root	var/
+drwxr-xr-x	root/root	var/lib/
+drwxr-xr-x	root/root	var/lib/prometheus/
+drw-r--r--	root/root	var/lib/prometheus/data/
diff --git a/prometheus/.signature b/prometheus/.signature
new file mode 100644
index 000000000..4574b38ae
--- /dev/null
+++ b/prometheus/.signature
@@ -0,0 +1,7 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF333zNcMB1zfiwCpq6BNnZL2eC5awG9DFL/AIza1SXAgiV/7I7K4FSRfbV01mkm4DjEVZ9HHP7xIzs9nLnVcgYAY=
+SHA256 (Pkgfile) = fa7705678785e4a7a831135eed3ca21d15dd487e300988894cea5dadc0e3218d
+SHA256 (.footprint) = a0870fb10f7f1935bf6280910b0f68fa8762cec5ecd4617dea7c838aeb226fac
+SHA256 (prometheus-2.24.0.tar.gz) = aaf32298f7342bf01e2215c376575d22d3d35bcbb91645766eb42540b1ba3385
+SHA256 (prometheus.conf) = b3a7924e380f4f78fa6016bde9c7ca55778a46a440ffd00f4cf8c0d1327fc9ec
+SHA256 (prometheus.service) = 1d232fa874a9903b446cb7bf6f9058f3871a9dec2859f2dd2c0040671de636fc
diff --git a/prometheus/Pkgfile b/prometheus/Pkgfile
new file mode 100644
index 000000000..0b1cb0714
--- /dev/null
+++ b/prometheus/Pkgfile
@@ -0,0 +1,78 @@
+# Description: an open-source systems monitoring and alerting toolkit
+# URL: https://prometheus.io
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: go yarn
+
+name=prometheus
+version=2.24.0
+release=1
+source=(https://github.com/prometheus/prometheus/archive/v$version/$name-$version.tar.gz
+  prometheus.conf prometheus.service)
+
+build() {
+  cd $name-$version
+
+  cd web/ui/react-app
+  yarn --frozen-lockfile
+  yarn lint
+  cd ../../../
+  ./scripts/build_react_app.sh
+  cd web/ui
+  CGO_ENABLED=0 GOARCH= go generate -x -v
+
+  cd ../../
+  gofmt -w ./web/ui
+
+  GOLDFLAGS="-X github.com/prometheus/common/version.Version=$version
+    -X github.com/prometheus/common/version.Revision=CRUX
+    -X github.com/prometheus/common/version.Branch=master
+    -X github.com/prometheus/common/version.BuildUser=$USER@$HOSTNAME
+    -X github.com/prometheus/common/version.BuildDate=$(date -u +%Y%m%d-%H:%M:%S ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})
+    "
+
+  if [ -n $LDFLAGS ]; then
+    # LDFLAGS (and only LDFLAGS) should be passed to -extldflags.
+    GOLDFLAGS="$GOLDFLAGS -extldflags $LDFLAGS"
+  fi
+
+  go build \
+    -trimpath \
+    -mod=vendor \
+    -ldflags "$GOLDFLAGS" \
+    -tags netgo,builtinassets \
+    ./cmd/prometheus
+  go build \
+    -trimpath \
+    -mod=vendor \
+    -ldflags "$GOLDFLAGS" \
+    ./cmd/promtool
+
+  install -Dm755 -t $PKG/usr/bin prometheus promtool
+
+  install -Dm644 $SRC/prometheus.conf \
+    $PKG/etc/conf.d/prometheus
+  install -dm644 $PKG/var/lib/prometheus/data
+
+  install -Dm644 -t $PKG/etc/prometheus \
+    documentation/examples/prometheus.yml
+
+  mkdir -p $PKG/etc/prometheus/console_libraries
+  for file in console_libraries/*
+  do
+    install -Dm644 -t $PKG/etc/prometheus/console_libraries/ $file
+  done
+
+  mkdir -p $PKG/etc/prometheus/consoles
+  for file in consoles/*
+  do
+    install -Dm644 -t $PKG/etc/prometheus/consoles/ $file
+  done
+
+  ## web
+  install -dm755 $PKG/usr/share/prometheus/web/ui
+  cp -R web/ui/{static,templates} $PKG/usr/share/prometheus/web/ui/
+  install -Dm644 $SRC/prometheus.conf $PKG/etc/conf.d/prometheus
+
+  ## install rc file
+  install -Dm 755 $SRC/prometheus.service $PKG/etc/rc.d/prometheus
+}
diff --git a/prometheus/prometheus.conf b/prometheus/prometheus.conf
new file mode 100644
index 000000000..8cf02ffdc
--- /dev/null
+++ b/prometheus/prometheus.conf
@@ -0,0 +1,6 @@
+prometheus_config_file=/etc/prometheus/prometheus.yml
+prometheus_storage_path=/var/lib/prometheus/data
+prometheus_retention_time=15d
+
+output_log=/var/log/prometheus.log
+error_log=/var/log/prometheus.log
diff --git a/prometheus/prometheus.service b/prometheus/prometheus.service
new file mode 100755
index 000000000..b3f322e84
--- /dev/null
+++ b/prometheus/prometheus.service
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# /etc/rc.d/prometheus: start/stop prometheus daemon
+#
+
+SSD=/sbin/start-stop-daemon
+PROG=/usr/bin/prometheus
+OPTS="--config.file=/etc/prometheus/prometheus.yml"
+
+case $1 in
+start)
+	$SSD --start -b --exec $PROG -- $OPTS
+	;;
+stop)
+	$SSD --stop --retry 10 --exec $PROG
+	;;
+restart)
+	$0 stop
+	$0 start
+	;;
+status)
+	$SSD --status --exec $PROG
+	case $? in
+	0) echo "$PROG is running with pid $(pidof $PROG)" ;;
+	1) echo "$PROG is not running but the pid file $PID exists" ;;
+	3) echo "$PROG is not running" ;;
+	4) echo "Unable to determine the program status" ;;
+	esac
+	;;
+*)
+	echo "usage: $0 [start|stop|restart|status]"
+	;;
+esac
+
+# End of file


More information about the crux-commits mailing list