-f now just means stay in the foreground.
-d now means stay in the foreground and log to foreground.
Both options now disable pid-files.
Update man pages.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
.SH OPTIONS
.TP
-\fB\-D\fP
-Debug mode: do not daemonize after startup (run in foreground) and send log output
-to stdout.
+\fB\-f\fP, \fB\-\-foreground\f
+Foreground: do not daemonize after startup (run in foreground).
+Do not generate a pid file. Useful when run via crun (8).
.TP
-\fB\-f\fP
-do not daemonize after startup (run in foreground), but log to the usual location.
-Useful when run via
-.BR crun (8).
+\fB\-d\fP, \fB\-\-debug\f
+Debug mode: like -f, but also send all log output to stderr.
.TP
\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
in the configuration file.
.SH OPTIONS
.TP
-\fB\-D\fP
-Debug mode: do not daemonize after startup (run in foreground) and send log output
-to stdout.
+\fB\-f\fP, \fB\-\-foreground\f
+Foreground: do not daemonize after startup (run in foreground).
+Do not generate a pid file. Useful when run via crun (8).
.TP
-\fB\-f\fP
-do not daemonize after startup (run in foreground), but log to the usual location.
-Useful when run via
-.BR crun (8).
+\fB\-d\fP, \fB\-\-debug\f
+Debug mode: like -f, but also send all log output to stderr.
.TP
\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
disk than \fIdatapath\fP with low latency (ideally, an NVRAM device).
.SH OPTIONS
.TP
-\fB\-D\fP
-Debug mode: do not daemonize after startup (run in foreground) and send log output
-to stdout.
+\fB\-f\fP, \fB\-\-foreground\f
+Foreground: do not daemonize after startup (run in foreground).
+Do not generate a pid file. Useful when run via crun (8).
.TP
-\fB\-f\fP
-do not daemonize after startup (run in foreground), but log to the usual location.
-Useful when run via
-.BR crun (8).
+\fB\-d\fP, \fB\-\-debug\f
+Debug mode: like -f, but also send all log output to stderr.
.TP
\fB\-\-osd\-data \fIosddata\fP
Use object store at \fIosddata\fP.
OPTION(num_client, 0, OPT_INT, 1),
OPTION(monmap, 'M', OPT_STR, 0),
OPTION(mon_host, 'm', OPT_STR, 0),
- OPTION(daemonize, 'd', OPT_BOOL, false),
+ OPTION(daemonize, 0, OPT_BOOL, false),
OPTION(tcmalloc_profiler_run, 0, OPT_BOOL, false),
OPTION(profiler_allocation_interval, 0, OPT_INT, 1073741824),
OPTION(profiler_highwater_interval, 0, OPT_INT, 104857600),
cf->dump();
_exit(0);
}
- else if (ceph_argparse_flag(args, i, "--nodaemon", "-D", NULL)) {
+ else if (ceph_argparse_flag(args, i, "--foreground", "-f", NULL)) {
daemonize = false;
+ set_cv(&pid_file, NULL);
}
- else if (ceph_argparse_flag(args, i, "--foreground", "-f", NULL)) {
+ else if (ceph_argparse_flag(args, i, "--debug", "-d", NULL)) {
daemonize = false;
set_cv(&log_dir, NULL);
set_cv(&pid_file, NULL);