[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 08/14: Remove check_shutdown.

Bernd Zeimetz bernd at bzed.de
Fri Jan 13 13:26:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.

commit f84c6a0e18a0f74c4e876e8fca93dd2a4cfa3d0e
Author: Bernd Zeimetz <bernd at bzed.de>
Date:   Fri Jan 13 11:20:22 2017 +0100

    Remove check_shutdown.
    
    Does not work with systemd.
    Resolves #54
---
 check_shutdown/Makefile       |  5 -----
 check_shutdown/check_shutdown | 30 ------------------------------
 check_shutdown/control        |  6 ------
 check_shutdown/copyright      | 14 --------------
 4 files changed, 55 deletions(-)

diff --git a/check_shutdown/Makefile b/check_shutdown/Makefile
deleted file mode 100644
index a347ae5..0000000
--- a/check_shutdown/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-#/usr/bin/make -f
-
-PLUGIN = check_shutdown
-
-include ../common.mk
diff --git a/check_shutdown/check_shutdown b/check_shutdown/check_shutdown
deleted file mode 100755
index cd27db6..0000000
--- a/check_shutdown/check_shutdown
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# Author: Petter Reinholdtsen <pere at hungry.com>
-# Date: 2011-02-03
-# License: GNU GPL v2 or later
-#
-# Report when a reboot is in progress.  Useful to detect if
-# reboot-when-idle have been used on a server.
-
-set -e
-
-PATH=/bin:/sbin:/usr/sbin:/usr/bin
-
-shutdownpid="`pgrep '^shutdown$'|head -1`"
-
-if [ "$shutdownpid" ] ; then
-    case "`uname -s`" in
-	Linux)
-	    cmd="`ps --no-headers --pid $shutdownpid -o command`"
-	    echo "REBOOT IN PROGRESS: $cmd"
-	    ;;
-	*)
-	    echo "REBOOT IN PROGRESS"
-	    ;;
-    esac
-    exit 1
-fi
-
-echo "OK - no shutdown running"
-exit 0
diff --git a/check_shutdown/control b/check_shutdown/control
deleted file mode 100644
index 390b8b5..0000000
--- a/check_shutdown/control
+++ /dev/null
@@ -1,6 +0,0 @@
-Uploaders: Petter Reinholdtsen <pere at hungry.com>
-Description: plugin to detect shutdown in progress
- Report when a reboot is in progress.  This is useful to detect if
- reboot-when-idle or similar have been used on a server.
-Recommends: procps
-Version: 0.0.20110203
diff --git a/check_shutdown/copyright b/check_shutdown/copyright
deleted file mode 100644
index 08d8906..0000000
--- a/check_shutdown/copyright
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (C) 2011 Petter Reinholdtsen <pere at hungry.com>
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at
-your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, see <http://www.gnu.org/licenses/>.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list