diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-01-24 15:01:33 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-01-24 20:23:12 +0000 |
commit | 119a0b0d12dea51d1a5032552dbe8944308276ca (patch) | |
tree | 9952bc3cbafb22efd03656c14e95db3dd9d4fd93 /templates/poweroff/now | |
parent | f4485f4c2beac42a1cdbde35f900440416e1c5ae (diff) | |
download | vyatta-op-119a0b0d12dea51d1a5032552dbe8944308276ca.tar.gz vyatta-op-119a0b0d12dea51d1a5032552dbe8944308276ca.zip |
vyatta-op: update the system poweroff cli command to be script based
Update the system poweroff command to use the vyatta-poweroff.pl script
rather than simply uisng the shutdown command. This allows other
actions to be taken on shutdown, including correctly disconnecting SSH
clients rather than having them resorting to timing out (Bug #298)
Bug #460 http://bugzilla.vyos.net/show_bug.cgi?id=460
Diffstat (limited to 'templates/poweroff/now')
-rw-r--r-- | templates/poweroff/now/node.def | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/poweroff/now/node.def b/templates/poweroff/now/node.def index d9902cb..6b67572 100644 --- a/templates/poweroff/now/node.def +++ b/templates/poweroff/now/node.def @@ -1,3 +1,2 @@ -help: Poweroff the system now [disruptive] -run: sudo /sbin/shutdown -h now && sudo /usr/bin/killall sshd - +help: Poweroff the system without confirmation +run: sudo /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action poweroff --now |