typo fix with root check in nginx module

Signed-off-by: Eric Wong <normalperson@yhbt.net>
query: avoid redundant calls to err_line()

Additionally, log redundant calls to err_line so we have a
chance at figuring out what is causing redundant calls to
err_line()
query: fix error reporting for _do_fsck_reset

Failed set_server_settings calls just die with errors, so we
need to track and log that to syslog.  We'll also report we had
a database error back to the client (but avoid propagating the
exact error message, in case there is any sensitive
information).
debian/control: sysstat contains /usr/bin/iostat

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Filter the devices before we do an expensive sort.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
mogstored: fix kqueue usage with daemonization

Calling Mogstored::HTTPServer::Perlbal->start() creates a kqueue
descriptor.  kqueue descriptors are invalidated across fork,
so we must avoid kqueue creation until after daemonization.

We continue starting non-Perlbal HTTP servers before
daemonization, as error reporting can be easier if stderr/stdout
are not redirected to /dev/null.

ref: http://code.google.com/p/mogilefs/issues/detail?id=72
Cc: to.my.trociny@gmail.com
postgres: remove Pg-specific create_class

This version is still racy after several years.  More importantly,
it's missing the change in commit 5d01811ce47b888ca710985bf31ec45c4b7cadfa
which allows the default class to be overridden.
store: wrap create_class in a transaction to avoid races

Race conditions in create_class are unlikely to be a problem
in normal usage, but this will discourage code duplication
which can lead to maintainability issues.
domain removal also removes its default class

A default class may enter the class table if its settings
(e.g. mindevcount) are altered.  The queryworker does not
allow removing the default class, so the only way to remove
it is to remove it when the domain goes away.
tests: add "!want <count> <jobclass>" helper

This is used in several places, and will make code
easier to maintain going forward.
reaper: ensure worker can be stopped via "!want"

Now, all of our job classes may be controlled via "!want"