nfs-utils: convert rpc.nfsd to use xlog()
authorJeff Layton <jlayton@redhat.com>
Sat, 1 Aug 2009 10:27:40 +0000 (06:27 -0400)
committerSteve Dickson <steved@redhat.com>
Sat, 1 Aug 2009 10:27:40 +0000 (06:27 -0400)
commit6f25394cb5651e7e44cc3fc0b2b4b2ccba8c3625
tree6a8c3f9cf43f5f7f77de03a203f17ee54305aa35
parent5d37055061e92df07c4bf483ce06551d82ae9338
nfs-utils: convert rpc.nfsd to use xlog()

...and add --debug and --syslog options.

With the switch to xlog(), it becomes trivial to add debug messages, so
add an option to turn them on when requested.

Also, rpc.nfsd isn't a proper daemon per-se, so it makes more sense to
log errors to stderr where possible. Usually init scripts take care of
redirecting stderr output to syslog anyway.

For those that don't, add a --syslog option that forces all output to go
to syslog instead. Note that even with this option, errors encountered
during option processing will still go to stderr.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsd/nfsd.c
utils/nfsd/nfssvc.c