diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-12 10:38:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-12 10:38:34 -0700 |
commit | 2b7a2596d1eca1248a1f851ed933d7ac9c3c0902 (patch) | |
tree | 45ead7b7df6d34cdcc3b529f99e848840cb8d662 | |
parent | ef2299e107f9020f77be26d2a109f030d0ea50b2 (diff) | |
download | vyatta-op-2b7a2596d1eca1248a1f851ed933d7ac9c3c0902.tar.gz vyatta-op-2b7a2596d1eca1248a1f851ed933d7ac9c3c0902.zip |
Use nohup to avoid extra messages
Don't want to expose fact shutdown is a background job
-rw-r--r-- | templates/shutdown/at/node.tag/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def index 94cd332..8760fea 100644 --- a/templates/shutdown/at/node.tag/node.def +++ b/templates/shutdown/at/node.tag/node.def @@ -1,5 +1,5 @@ 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 sudo /sbin/shutdown -h $3 & + then nohup sudo /sbin/shutdown -h $3 </dev/null >/dev/null 2>&1 fi |