diff options
Diffstat (limited to 'doc/pies.texi')
-rw-r--r-- | doc/pies.texi | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/doc/pies.texi b/doc/pies.texi index 012ac88..1a798e1 100644 --- a/doc/pies.texi +++ b/doc/pies.texi | |||
@@ -176,7 +176,11 @@ foreground. | |||
176 | 176 | ||
177 | Upon startup, @command{pies} reads the list of components | 177 | Upon startup, @command{pies} reads the list of components |
178 | from its configuration file, starts them, and remains in the | 178 | from its configuration file, starts them, and remains in the |
179 | background, controlling their execution. | 179 | background, controlling their execution. Each component is |
180 | defined by the name of the external program to be run and its | ||
181 | arguments (command line). The program is normally run directly | ||
182 | (via @code{exec}), but you can instruct @command{pies} to run | ||
183 | it via @code{sh -c} as well. | ||
180 | 184 | ||
181 | The standard output and standard error streams of a component can be | 185 | The standard output and standard error streams of a component can be |
182 | redirected to a file or to an arbitrary @command{syslog} channel. | 186 | redirected to a file or to an arbitrary @command{syslog} channel. |
@@ -870,6 +874,21 @@ their standard input to be open (e.g.@: @command{pppd nodetach}). | |||
870 | Mark this component as @dfn{precious}. Precious components are never | 874 | Mark this component as @dfn{precious}. Precious components are never |
871 | disabled by @command{pies}, even if they respawn too fast. | 875 | disabled by @command{pies}, even if they respawn too fast. |
872 | 876 | ||
877 | @kwindex shell | ||
878 | @item shell | ||
879 | Run command as @code{/bin/sh -c "$command"}. Use this flag if command | ||
880 | contains shell-specific features, such as I/O redirections, pipes, | ||
881 | variables or the like. You can change the shell program using the | ||
882 | @code{program} statement. For example, to use Korn shell: | ||
883 | |||
884 | @example | ||
885 | component X @{ | ||
886 | flags shell; | ||
887 | program "/bin/ksh"; | ||
888 | command "myprog $HOME"; | ||
889 | @} | ||
890 | @end example | ||
891 | |||
873 | @kwindex wait | 892 | @kwindex wait |
874 | @item wait | 893 | @item wait |
875 | This flag is valid only for @samp{inetd} components. It has the same | 894 | This flag is valid only for @samp{inetd} components. It has the same |