This repository was archived by the owner on May 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL
More file actions
46 lines (35 loc) · 1.86 KB
/
INSTALL
File metadata and controls
46 lines (35 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PURPOSE
-------
This module catches all communication on the GridFTP control channel and logs it
to a file. If the GridFTP process exits cleanly, the log file is automatically
deleted. Otherwise, the GridFTP process is left for inspection by an administrator
or developer. This is very useful for debugging user issues.
OVERVIEW
--------
Just build the library, LD_PRELOAD it into the GridFTP server process and set the
environment variable CMD_LOGGER_LOGFILE to point to where you want the control
channel logged.
BUILD
-----
In order to build this library, the compiler will need access to internal Globus headers.
You must install the RPM globus-gridftp-server-control-debuginfo prior to building this
module. After that, just typin make should suffice.
INSTALLATION
------------
Put the library in a location accessible to the GridFTP server. For example, install it
into /usr/local/lib64/.
CONFIGURATION
-------------
LD_PRELOAD the library into the GridFTP process. If you launch GridFTP from xinetd:
env += LD_PRELOAD=/usr/local/lib64/libcmd_logger.so
Set the environment variable that tells the GridFTP process where to place the logfiles:
env += CMD_LOGGER_LOGFILE=/var/log/gridftp_logs/logfile
The library will automatically append the process's PID to the end of the logfile name
in order to keep them unique. The directory must be writeable by the UID used to launch
the GridFTP process. For most installations, this will be the root user.
If you set the environment variable CMD_LOGGER_KEEP_LOG, the GridFTP process will not
remove the log file on exit, even on success. This is useful for debugging connections.
If the GridFTP process changes owner/group, the library will catch setuid(), setgid()
and change the log file's permissions as well. This allows the file to be later removed
on successful exit. And it requires that the log file directory is sticky.
Good Luck!