Signed-off-by: Chris Allen <Chris Allen>
my $cmdmap;
if (@params && $params[0] eq 'restart') {
my $cmdmap;
if (@params && $params[0] eq 'restart') {
- @params = ('restart', '1>&2', '>', '/dev/null');
+ @params = ('onerestart', '>&', '/dev/null');
$cmdmap = {
cmd => 'ssh',
method => $DAEMON,
params => \@params,
};
} else {
$cmdmap = {
cmd => 'ssh',
method => $DAEMON,
params => \@params,
};
} else {
- @params = ('-HUP', '$(cat '. "$SETTINGS->{pidfile})");
+ @params = ('-HUP', '`cat '. "$SETTINGS->{pidfile}`");
$cmdmap = {
cmd => 'ssh',
method => 'kill',
$cmdmap = {
cmd => 'ssh',
method => 'kill',