diff options
author | brian <brian@FreeBSD.org> | 2001-01-26 01:41:34 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-01-26 01:41:34 +0000 |
commit | 63b65f9457011d370ef859a506f558b2731883d2 (patch) | |
tree | 694b69d9cd6e10dc4a8f60f6fc9ebc124e7875db /usr.sbin/ppp/ppp.8 | |
parent | a4be54702c06f4adfd819f74d6f5586d5362b361 (diff) | |
download | FreeBSD-src-63b65f9457011d370ef859a506f558b2731883d2.zip FreeBSD-src-63b65f9457011d370ef859a506f558b2731883d2.tar.gz |
Allow ``set server closed'' to close the diagnostic socket.
Allow ``set server open'' to re-open the diagnostic socket.
Handle SIGUSR1 by re-opening the diagnostic socket
When receiving SIGUSR2 (and in ``set server none''), don't forget the
socket details so that ``set server open'' and SIGUSR1 open it again.
Don't create the diagnostic socket as uid 0 ! It's far to dangerous.
Diffstat (limited to 'usr.sbin/ppp/ppp.8')
-rw-r--r-- | usr.sbin/ppp/ppp.8 | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index 998275a..4120382 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -2351,11 +2351,18 @@ mode. These signals tell .Nm to exit. +.It USR1 +This signal, tells +.Nm +to re-open any existing server socket, dropping all existing diagnostic +connections. Sockets that couldn't previously be opened will be retried. .It USR2 This signal, tells .Nm to close any existing server socket, dropping all existing diagnostic connections. +.Dv SIGUSR1 +can still be used to re-open the socket. .El .Pp .Sh MULTI-LINK PPP @@ -5141,7 +5148,7 @@ The optimum value is just over twice the MTU value. If .Ar value is unspecified or zero, the default kernel controlled value is used. -.It set server|socket Ar TcpPort|LocalName|none password Op Ar mask +.It set server|socket Ar TcpPort|LocalName|none|open|closed Op password Op Ar mask This command tells .Nm to listen on the given socket or @@ -5152,7 +5159,17 @@ The word .Ar none instructs .Nm -to close any existing socket. +to close any existing socket and clear the socket configuration. +The word +.Ar open +instructs +.Nm +to attempt to re-open the port. +The word +.Ar closed +instructs +.Nm +to close the open port. .Pp If you wish to specify a local domain socket, .Ar LocalName @@ -5169,7 +5186,7 @@ for details of how to translate TCP port names. You must also specify the password that must be entered by the client (using the .Dq passwd -command above) when connecting to this socket. +variable above) when connecting to this socket. If the password is specified as an empty string, no password is required for connecting clients. .Pp @@ -5194,7 +5211,13 @@ Currently, .Xr telnet 1 can also be used, but link encryption may be implemented in the future, so .Xr telnet 1 -should not be relied upon. +should be avoided. +.Pp +Note; +.Dv SIGUSR1 +and +.Dv SIGUSR2 +interact with the diagnostic socket. .It set speed Ar value This sets the speed of the serial device. If speed is specified as |