|
|
bb34c2 |
diff --git a/radvd.8.man b/radvd.8.man
|
|
|
bb34c2 |
index 0310150..c31d626 100644
|
|
|
bb34c2 |
--- a/radvd.8.man
|
|
|
bb34c2 |
+++ b/radvd.8.man
|
|
|
bb34c2 |
@@ -71,6 +71,9 @@ This option disables privilege separation, and as a result,
|
|
|
bb34c2 |
the non-privileged radvd process does not have permissions to
|
|
|
bb34c2 |
change interface configuration.
|
|
|
bb34c2 |
.TP
|
|
|
bb34c2 |
+.BR "\-n" , " \-\-nodaemon"
|
|
|
bb34c2 |
+Prevent the daemonizing.
|
|
|
bb34c2 |
+.TP
|
|
|
bb34c2 |
.BR "\-c" , " \-\-configtest"
|
|
|
bb34c2 |
Test configuration and do startup tests and then exit.
|
|
|
bb34c2 |
.TP
|
|
|
bb34c2 |
diff --git a/radvd.c b/radvd.c
|
|
|
bb34c2 |
index 7cadf16..a241779 100644
|
|
|
bb34c2 |
--- a/radvd.c
|
|
|
bb34c2 |
+++ b/radvd.c
|
|
|
bb34c2 |
@@ -42,6 +42,7 @@ char usage_str[] = {
|
|
|
bb34c2 |
" -p, --pidfile=PATH Sets the pid file.\n"
|
|
|
bb34c2 |
" -t, --chrootdir=PATH Chroot to the specified path.\n"
|
|
|
bb34c2 |
" -u, --username=USER Switch to the specified user.\n"
|
|
|
bb34c2 |
+" -s, --singleprocess Disable privilege separation.\n"
|
|
|
bb34c2 |
" -n, --nodaemon Prevent the daemonizing.\n"
|
|
|
bb34c2 |
#ifdef HAVE_NETLINK
|
|
|
bb34c2 |
" -L, --disablenetlink Disable netlink feature\n"
|
|
|
bb34c2 |
@@ -137,7 +138,7 @@ main(int argc, char *argv[])
|
|
|
bb34c2 |
pidfile = PATH_RADVD_PID;
|
|
|
bb34c2 |
|
|
|
bb34c2 |
/* parse args */
|
|
|
bb34c2 |
-#define OPTIONS_STR "d:C:l:m:p:t:u:vhcsn"
|
|
|
bb34c2 |
+#define OPTIONS_STR "d:C:l:m:f:p:t:u:vhcsn"
|
|
|
bb34c2 |
#ifdef HAVE_GETOPT_LONG
|
|
|
bb34c2 |
while ((c = getopt_long(argc, argv, OPTIONS_STR, prog_opt, &opt_idx)) > 0)
|
|
|
bb34c2 |
#else
|