|
NAMEipa -- utility for accountingSYNOPSISipa -h|v ipa [-c dir] [-u user] [-g group] [-p pid_file] -k signal ipa [-c dir] [-u user] [-g group] [-f conf_file] -t [-t] ipa [-d] [-c dir] [-u user] [-g group] [-f conf_file] [-p pid_file] [-o log_file] [-i log_ident] ipa -x [-c dir] [-u user] [-g group] [-f conf_file] [-r rule [-l limit [-s sublimit]|-t threshold]] section [subsection] DESCRIPTIONIPA is the ``Pluggable Accounting System''. The IPA distribution consists of three utilities for general purpose accounting: ipa, ipactl and ipastat. Each of these utilities is described on its own manual page.ipa is an utility for accounting. The ipa.conf(5) manual page gives the complete description how to configure ipa and describes all its features. ipa periodically takes statistics from IPA accounting modules and passes this statistics to IPA database modules according to settings in the ipa.conf(5) configuration file. It is possible to use several accounting systems and databases at once. Available options are:
When ipa starts it acquires the exclusive lock on its PID-file to prevent multiple copies of itself from running and stores its PID in this file. This saved PID is not used by ipa in any way. A SIGTERM signal causes the shutdowning of the ipa running copy. It is the only one correct way to shutdown it. If the -d switch is given in the command line, then a SIGINT signal is handled as a SIGTERM signal (a SIGINT signal usually is sent to a foreground process when one types Control-C sequence). A SIGHUP signal tells ipa to reread its configuration file (default or one given in the command line when ipa was run). If ipa cannot parse the configuration file, then it exits. Read the ipa.conf(5) manual page for more information why it is better in some cases to reread a configuration instead of stopping and running ipa. Do not send a SIGKILL signal to the running copy of ipa, use this signal only if ipa does not work properly and does not catch a SIGTERM signal (or a SIGINT signal if it is run in the foreground regime). This note is here just because the -k option accepts the kill argument. Note that ipa caught the above mentioned signals only if it does not currently execute some function from used IPA modules or does not runs commands in a synchronous regime. Handling of other signals is undefined. If ipa starts in the background, then it redirects the standard input (stdin) to /dev/null (see output of the ``ipa -v'' command for the real path), output to the standard output (stdout) and the standard error output (stderr) is redirected to internal pipe(2)s and asynchronously is logged with *STDOUT and *STDERR prefixes respectively. Write ends of each pipes are set in the non-blockable regime. Since a pipe(2) has a limited size of its buffer, then some information sent to stdout or stderr can be lost. Anyway this is better than simply discard output to stdout and stderr. If ipa starts in the foreground, then stdin and stderr works as usual (stderr is used for outputting log messages). ipa does not sent any message to stdout and stderr (when it runs in the background), but library functions or run commands can send messages to stdout and stderr. DIAGNOSTICSipa exits with a return code 0 on success, and with a non-zero return code if any error occurred. By default ipa is run in the background and you should not rely upon its return code (it is just a return code of a original process), it is better to look at its log-file. If you need to control a return code, then run ipa in foreground (use the -d switch).FILESipa.pidipa.conf (run ipa with the -h switch and check default paths) SEE ALSOipactl(8), ipastat(8), ipa.conf(5), ipastat.conf(5), ipa_mod(3)AUTHORAndrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>BUGSIf you find any, please send email me.
Visit the GSP FreeBSD Man Page Interface. |