* Don't stop jobs that are already stopped.
svn path=/nixos/branches/upstart-0.6/; revision=18226
This commit is contained in:
parent
82c3e2aa50
commit
4b2ff53ec6
@ -35,8 +35,8 @@ with pkgs.lib;
|
|||||||
|
|
||||||
|
|
||||||
# Stop all Upstart jobs.
|
# Stop all Upstart jobs.
|
||||||
initctl list | while read jobName rest; do
|
initctl list | while IFS=", " read jobName status rest; do
|
||||||
if test "$jobName" != shutdown; then
|
if test "$jobName" != shutdown -a "$status" != "stop/waiting"; then
|
||||||
echo "stopping $jobName..."
|
echo "stopping $jobName..."
|
||||||
stop "$jobName"
|
stop "$jobName"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user