diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-16 00:05:23 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-16 01:16:12 +0300 |
commit | a0631c9ac2c13c3ef1db027a490620504a287d3f (patch) | |
tree | 5cc3c9d5b588974eee29d17c724dbdd8551dfdc8 /doc | |
parent | 9670b8cada0df307c6ffd9be1b14f5dfd51cc958 (diff) | |
download | pies-a0631c9ac2c13c3ef1db027a490620504a287d3f.tar.gz pies-a0631c9ac2c13c3ef1db027a490620504a287d3f.tar.bz2 |
Various improvements.
* configure.ac (AC_CHECK_FUNCS): Check for vsyslog.
* src/diag.c (syslog_printer) [!HAVE_VSYSLOG]: call syslog.
* src/pies.c (component_keywords): Remove settle-timeout,
replace it with pass-fd-timeout.
(main): Force syslog logging if !foreground.
Do not close first three fds before restarting
if log_to_stderr is set.
* src/pies.h (DEFAULT_PASS_FD_TIMEOUT): New constant.
(struct component): Replace settle_timeout with
pass_fd_timeout. All uses changed.
(pass_fd): Pass timeout as argument.
* src/progman.c (prog_start): Remove hardcoded sleep before
calling pass_fd. Update call to pass_fd.
(prog_start_prerequisites): Remove handling of settle_timeout.
* src/socket.c (open_unix_socket): Remove.
(pass_fd): Rewrite.
* doc/pies.texi: Update.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/pies.texi | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/pies.texi b/doc/pies.texi index f1654c0..93a329e 100644 --- a/doc/pies.texi +++ b/doc/pies.texi | |||
@@ -753,11 +753,10 @@ component from starting normally. | |||
753 | As of version @value{VERSION} only one @command{remove-file} may be given. | 753 | As of version @value{VERSION} only one @command{remove-file} may be given. |
754 | @end deffn | 754 | @end deffn |
755 | 755 | ||
756 | @deffn {Config: component} settle-timeout @var{number} | 756 | @deffn {Config: component} pass-fd-timeout @var{number} |
757 | Wait @var{number} of seconds. This is kind of kludge. Currently it is | 757 | Wait @var{number} of seconds for the @samp{pass-fd} socket |
758 | used for components imported from @file{meta1.conf} file | 758 | to become available (@pxref{Meta1-Style Components}). Default is |
759 | (@pxref{include-meta1}), where @code{settle-timeout 1} is implied. | 759 | 5 seconds. |
760 | This may change in future versions. | ||
761 | @end deffn | 760 | @end deffn |
762 | 761 | ||
763 | @node Exit Actions | 762 | @node Exit Actions |
@@ -1073,9 +1072,9 @@ component @var{tag} @{ | |||
1073 | # @r{Remove @var{file-name} before starting the component.} | 1072 | # @r{Remove @var{file-name} before starting the component.} |
1074 | # @xref{Actions Before Startup, remove-file}. | 1073 | # @xref{Actions Before Startup, remove-file}. |
1075 | remove-file @var{file-name}; | 1074 | remove-file @var{file-name}; |
1076 | # @r{Time to wait before starting this component.} | 1075 | # @r{Wait @var{number} of seconds for pass-fd socket to become available.} |
1077 | # @xref{Actions Before Startup, settle-timeout}. | 1076 | # @xref{Actions Before Startup, pass-fd-timeout}. |
1078 | settle-timeout @var{number}; | 1077 | pass-fd-timeout @var{number}; |
1079 | 1078 | ||
1080 | # @r{Actions:} | 1079 | # @r{Actions:} |
1081 | # @xref{Exit Actions}. | 1080 | # @xref{Exit Actions}. |