summaryrefslogtreecommitdiff
path: root/templates/show/shutdown/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/shutdown/node.def')
-rw-r--r--templates/show/shutdown/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/show/shutdown/node.def b/templates/show/shutdown/node.def
new file mode 100644
index 0000000..ecc8c4b
--- /dev/null
+++ b/templates/show/shutdown/node.def
@@ -0,0 +1,8 @@
+help: Show scheduled shutdown
+run: if [ -f /var/run/shutdown.pid ]
+ then if [ -r /tmp/shutdown.at ]
+ then echo -n "Shutdown pending at"; cat /tmp/shutdown.at
+ else echo "Shutdown pending"
+ fi
+ else echo "No shutdown pending"
+ fi