Download PDF file

Transcript
Chapter 3: Pies Configuration File
15
PIES_STATUS
Program exit code.
action ‘disable | restart’
[Config: return-code]
If ‘restart’ is given, restart the component. This is the default. Otherwise, mark the component as disabled. Component dependents are
stopped and marked as disabled as well. Once disabled, the components
are never restarted, unless their restart is requested by the administrator.
[Config: return-code]
Send an email notification to addresses in email-string. See Section 3.3
[Notification], page 23, for a detailed discussion of this feature.
notify email-string
[Config: return-code]
Supply notification message text to use by notify statement. See
Section 3.3 [Notification], page 23, for a detailed discussion of this feature.
message string
Any number of return-code statements are allowed, provided that their
codes do not intersect.
The return-code statements can also be used outside of component
block. In this case, they supply global actions, i.e. actions applicable to all
components. Any return-code statements appearing within a component
block override the global ones.
3.2.6 Output Redirectors
Output redirectors allow to redirect the standard error and/or standard
output of a component to a file or syslog facility.
[Config: component]
[Config: component]
Redirect standard error (if stderr) or standard output (if stdout) to the
given channel.
The type of redirection is specified by type argument:
stderr type channel
stdout type channel
file
Redirect to a file. In this case channel gives the full name of
the file. For example:
stderr file /var/log/component/name.err;
syslog
Redirect to a syslog channel. The syslog priority is given by
the channel argument. Allowed values are: ‘emerg’, ‘alert’,
‘crit’, ‘err’, ‘warning’, ‘notice’, ‘info’, ‘debug’. The facility is inherited from the syslog statement (see [syslog],
page 29), or from the facility statement (see below), if
given.
Example:
stderr syslog err;