Skip to main content

On a Linux Signal

AMPS provides the amps-action-on-signal module for running actions when AMPS receives a specified signal.

The module requires the Signal parameter:

ParameterDescription

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 following table.

This module does not add any variables to the AMPS context.

warning

Actions can be used to override the default signal behavior for AMPS

Default Signal Actions

By default, AMPS registers the following actions for signals:

On EventAction
SIGUSR1amps-action-do-disable-authentication
SIGUSR1amps-action-do-disable-entitlement
SIGUSR2amps-action-do-enable-authentication
SIGUSR2amps-action-do-enable-entitlement
SIGINTamps-action-do-shutdown
SIGTERMamps-action-do-shutdown
SIGHUPamps-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.

On EventAction
SIGQUITamps-action-do-minidump