summaryrefslogtreecommitdiff
path: root/templates/shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shutdown')
-rw-r--r--templates/shutdown/at/node.tag/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def
index 8760fea..3360f88 100644
--- a/templates/shutdown/at/node.tag/node.def
+++ b/templates/shutdown/at/node.tag/node.def
@@ -1,5 +1,6 @@
help: Shutdown the system at a future time
allowed: echo -n '<HH:MM>' '<MMDDYY>' '+MM'
run: if /opt/vyatta/bin/vyatta-gettime.pl $3 >/tmp/shutdown.at
- then nohup sudo /sbin/shutdown -h $3 </dev/null >/dev/null 2>&1
+ then (sudo /sbin/shutdown -h $3 &
+ disown %?sudo ) >/dev/null 2>&1
fi