5
0
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:
Chris Allen 2014-03-10 13:06:09 -07:00 committed by Dietmar Maurer
parent 70986fd9e4
commit c521e801ae

View File

@ -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',