summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/shutdown/at/node.def1
-rw-r--r--templates/shutdown/at/node.tag/node.def3
-rw-r--r--templates/shutdown/cancel/node.def2
-rw-r--r--templates/shutdown/node.def2
4 files changed, 8 insertions, 0 deletions
diff --git a/templates/shutdown/at/node.def b/templates/shutdown/at/node.def
new file mode 100644
index 0000000..baa0023
--- /dev/null
+++ b/templates/shutdown/at/node.def
@@ -0,0 +1 @@
+help: Shutdown at a specific time
diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def
new file mode 100644
index 0000000..ad16bc2
--- /dev/null
+++ b/templates/shutdown/at/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Shutdown the system at a future time
+allowed: echo -n '<HH:MM>' '<MMDDYY>' '+MM'
+run: sudo /sbin/shutdown -h $3
diff --git a/templates/shutdown/cancel/node.def b/templates/shutdown/cancel/node.def
new file mode 100644
index 0000000..6d70f54
--- /dev/null
+++ b/templates/shutdown/cancel/node.def
@@ -0,0 +1,2 @@
+help: Cancel a pending shutdown
+run: sudo /sbin/shutown -c
diff --git a/templates/shutdown/node.def b/templates/shutdown/node.def
new file mode 100644
index 0000000..be56a0c
--- /dev/null
+++ b/templates/shutdown/node.def
@@ -0,0 +1,2 @@
+help: Shutdown the system
+run: sudo /sbin/shutdown -h now