summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/restart/ssh/node.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/restart/ssh/node.def b/templates/restart/ssh/node.def
new file mode 100644
index 0000000..c8f59a9
--- /dev/null
+++ b/templates/restart/ssh/node.def
@@ -0,0 +1,9 @@
+help: Restart SSH service
+
+run:
+ echo "Restarting SSH..."
+ sudo /usr/sbin/invoke-rc.d ssh restart
+ if [[ $? -eq 0 ]]; then
+ echo "Success!"
+ fi
+