From ef2299e107f9020f77be26d2a109f030d0ea50b2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Mar 2009 10:37:49 -0700 Subject: Fix formatting of output Add needed space. --- templates/show/shutdown/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/show/shutdown/node.def b/templates/show/shutdown/node.def index ecc8c4b..52bd3a4 100644 --- a/templates/show/shutdown/node.def +++ b/templates/show/shutdown/node.def @@ -1,7 +1,7 @@ help: Show scheduled shutdown run: if [ -f /var/run/shutdown.pid ] then if [ -r /tmp/shutdown.at ] - then echo -n "Shutdown pending at"; cat /tmp/shutdown.at + then echo -n "Shutdown pending at "; cat /tmp/shutdown.at else echo "Shutdown pending" fi else echo "No shutdown pending" -- cgit v1.2.3 From 2b7a2596d1eca1248a1f851ed933d7ac9c3c0902 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Mar 2009 10:38:34 -0700 Subject: Use nohup to avoid extra messages Don't want to expose fact shutdown is a background job --- templates/shutdown/at/node.tag/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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 '' '' '+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 2>&1 fi -- cgit v1.2.3