55 |
my $background = $params{'BACKGROUND'} || 'false'; |
my $background = $params{'BACKGROUND'} || 'false'; |
56 |
|
|
57 |
- die "serviceControl: Unknown serviceAction $serviceAction" if ($serviceAction =~/^(reload-or-restart|try-restart|enable -now)$/); |
- die "serviceControl: Unknown serviceAction $serviceAction" if ($serviceAction =~/^(reload-or-restart|try-restart|enable -now)$/); |
58 |
+ die "serviceControl: Unknown serviceAction $serviceAction" if ($serviceAction =~/^(reload-or-restart|try-restart|try-reload-or-restart|enable -now|sigterm|sighup|sigusr1|sigusr2)$/); |
+ die "serviceControl: Unknown serviceAction $serviceAction" if ($serviceAction =~/^(reload-or-restart|try-restart|try-reload-or-restart|enable -now)$/); |
59 |
if ( $background eq 'true' ) |
if ( $background eq 'true' ) |
60 |
{ |
{ |
61 |
backgroundCommand( 0, $startScript, $serviceAction ); |
backgroundCommand( 0, $startScript, $serviceAction ); |