mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-28 17:47:18 +03:00
Fixed command substitution and output redirection in Istgt module to work in csh - the default shell in FreeBSD. Changed Istgt "restart" to "onerestart". This way a running istgt daemon will always restart whether or not it is enabled in rc.conf.
Signed-off-by: Chris Allen <Chris Allen>
This commit is contained in:
parent
70986fd9e4
commit
c521e801ae
@ -430,14 +430,14 @@ my $add_view = sub {
|
||||
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 {
|
||||
@params = ('-HUP', '$(cat '. "$SETTINGS->{pidfile})");
|
||||
@params = ('-HUP', '`cat '. "$SETTINGS->{pidfile}`");
|
||||
$cmdmap = {
|
||||
cmd => 'ssh',
|
||||
method => 'kill',
|
||||
|
Loading…
x
Reference in New Issue
Block a user