On a Linux Signal
Last updated
Last updated
Copyright 2013-2024 60East Technologies, Inc.
AMPS provides the amps-action-on-signal
module for running actions when AMPS receives a specified signal.
The module requires the Signal
parameter:
Signal
(required)
Specifies the signal to respond to. This module supports the standard Linux signals. Configuring an action uses the standard name of the signal.
For example, to configure an action to SIGUSR1
, the value for the Signal
element is SIGUSR1
. To configure an action for SIGHUP
, the value for the Signal
element is SIGHUP
and so on.
AMPS reserves SIGQUIT
for producing minidumps and does not allow this module to override SIGQUIT
. AMPS registers actions for several signals by default, as described in the .
This module does not add any variables to the AMPS context.
Actions can be used to override the default signal behavior for AMPS
By default, AMPS registers the following actions for signals:
SIGUSR1
amps-action-do-disable-authentication
SIGUSR1
amps-action-do-disable-entitlement
SIGUSR2
amps-action-do-enable-authentication
SIGUSR2
amps-action-do-enable-entitlement
SIGINT
amps-action-do-shutdown
SIGTERM
amps-action-do-shutdown
SIGHUP
amps-action-do-shutdown
The actions in the table above can be overridden by creating an explicit action in the configuration file.
AMPS reserves the SIGQUIT
signal and does not allow the configuration file to override the action taken in response to SIGQUIT
.
SIGQUIT
amps-action-do-minidump