From 074782df3af55e7c685932bdcdb66782533c1343 Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 21 Nov 2015 08:54:45 +0000 Subject: vyatta-op: add restart cli command for ssh Add a CLI op mode command to allow restarting of the SSH service without having to update the configuration. Bug #514 http://bugzilla.vyos.net/show_bug.cgi?id=514 --- templates/restart/ssh/node.def | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/restart/ssh/node.def (limited to 'templates') 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 + -- cgit v1.2.3