Retire dsa-is-shutdown-scheduled in favor of test -e /run/systemd/shutdown/scheduled
[mirror/dsa-puppet.git] / modules / debian_org / files / dsa-is-shutdown-scheduled
diff --git a/modules/debian_org/files/dsa-is-shutdown-scheduled b/modules/debian_org/files/dsa-is-shutdown-scheduled
deleted file mode 100644 (file)
index 4dd1a7f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# sysvinit
-if /usr/lib/nagios/plugins/check_procs -w 1: -u root -C shutdown > /dev/null; then
-       exit 0
-fi
-# jessie
-if pgrep -u root -fx /lib/systemd/systemd-shutdownd > /dev/null; then
-       exit 0
-fi
-# stretch
-if busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager ScheduledShutdown 2> /dev/null | awk '$3 > 0 { t=$3 } END { exit (t == 0)}'; then
-       exit 0
-fi
-exit 1