Author: eelco
Date: Sun Mar 18 02:36:44 2012
New Revision: 33225
URL: https://nixos.org/websvn/nix/?rev=33225&sc=1
Log:
* Use the --quiet flag.
Modified:
nixos/trunk/modules/system/activation/switch-to-configuration.sh
Modified: nixos/trunk/modules/system/activation/switch-to-configuration.sh
==============================================================================
--- nixos/trunk/modules/system/activation/switch-to-configuration.sh Sun Mar
18 02:36:21 2012 (r33224)
+++ nixos/trunk/modules/system/activation/switch-to-configuration.sh Sun Mar
18 02:36:44 2012 (r33225)
@@ -84,7 +84,7 @@
for job in $(initctl list | sed -e '/ stop\/waiting/ d; /^[^a-z]/ d; s/^\([^
]\+\).*/\1/' | sort); do
if ! [ -e "$newJobs/$job.conf" ] ; then
echo "stopping obsolete job ‘$job’..."
- initctl stop "$job" || true
+ stop --quiet "$job" || true
fi
done
@@ -115,8 +115,8 @@
echo "restarting changed service ‘$job’..."
# Note: can't use "restart" here, since that only restarts the
# job's main process.
- stop "$job" || true
- start "$job" || true
+ stop --quiet "$job" || true
+ start --quiet "$job" || true
done
# Start all jobs that are not running but should be. The "should be"
@@ -135,11 +135,11 @@
"$(readlink -f "$newJobs/$job.conf")" = "$(readlink -f
"/var/run/upstart-jobs/$job")" ];
then continue; fi
echo "starting task ‘$job’..."
- start "$job" || true
+ start --quiet "$job" || true
else
if ! grep -q "^start on" "$newJobs/$job.conf"; then continue; fi
echo "starting service ‘$job’..."
- start "$job" || true
+ start --quiet "$job" || true
fi
done
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits