Skip to content

Commit

Permalink
Added section about the installation location
Browse files Browse the repository at this point in the history
  • Loading branch information
florath committed Mar 9, 2015
1 parent 44aae42 commit 402e08c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions doc/man/libdontdie.7
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,32 @@ different sockets.
....
setenv("DD_TCP_KEEPALIVE_TIME", 180);
socket(...);
.SH INSTALLATION LOCATION
Depending on the installation method or the distribution, the
installation directory of
.B libdontdie
might differ.
.P
One way to get the installation directory is using the packet manager
to list all files of the packet (like 'dpkg -L <package_name>').
.P
Typically the library is installed in a directory under /usr/lib,
/usr/lib64, or /usr/lib/<triple>. A typical triple
is 'x86_64-linux-gnu'. Under Debian it is possible to get
the triple with the command
.sp
.RS
.nf
dpkg-architecture -qDEB_HOST_GNU_TYPE
.SH USAGE
All parameters are passed in as environment variables. The
.B libdontdie
itself is preloaded.
.P
The example assumes, that the library is installed
under '/usr/lib/libdontdie.so'. This might be replaced by the real
installation path.
.P
Example: to run the java program EchoClient with special TCP KEEP
ALIVE setting, use:
.sp
Expand Down

0 comments on commit 402e08c

Please sign in to comment.