Put ofp-pki logfile in log directory instead of in pki directory.
authorBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 20:50:33 +0000 (13:50 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 21:09:53 +0000 (14:09 -0700)
This should fix problems with trying to log on a machine that doesn't have
openflow-pki installed (because such machines didn't have the pki
directory).  Every machine needs the log directory.

Makefile.am
utilities/ofp-pki.8.in
utilities/ofp-pki.in

index 479d9b5..64827a7 100644 (file)
@@ -46,7 +46,8 @@ noinst_SCRIPTS =
 EXTRA_DIST += README.hwtables
 
 do_subst = ($(srcdir)/subst VLOG_OPTIONS $(srcdir)/lib/vlog.man | \
-           sed -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
+           sed -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
+               -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
                 -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
                 -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
                 -e 's,[@]PERL[@],$(PERL),g')
index f9aec40..f8bd4b1 100644 (file)
@@ -310,8 +310,8 @@ directories.  This option overrides this behavior.
 .TP
 \fB\-l\fR \fIfile\fR | \fB\-\^\-log=\fIfile\fR
 Sets the log file to \fIfile\fR.  If \fIfile\fR starts with \fB/\fR,
-it is taken as an absolute path; otherwise it is relative to the PKI
-hierarchy.  Default: \fBofp\-pki.log\fR.
+it is taken as an absolute path; otherwise it is relative to @LOGDIR@.
+Default: \fBofp\-pki.log\fR.
 
 .TP
 \fB\-h\fR | \fB\-\^\-help\fR
index d347a15..3d3a00d 100755 (executable)
@@ -5,7 +5,7 @@ command=
 prev=
 force=no
 batch=no
-log=ofp-pki.log
+log='@LOGDIR@/ofp-pki.log'
 keytype=rsa
 bits=2048
 for option; do