mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Merge pull request #1018 from vutny/fix-rhel6-session-hang
RHEL6: disable stdin to fix shell session hang on killing tee pipe
This commit is contained in:
commit
686d0ae9c7
1 changed files with 3 additions and 3 deletions
|
@ -3754,9 +3754,9 @@ install_centos_restart_daemons() {
|
|||
return 1
|
||||
fi
|
||||
elif [ -f /etc/init.d/salt-$fname ]; then
|
||||
# Still in SysV init!?
|
||||
/etc/init.d/salt-$fname stop > /dev/null 2>&1
|
||||
/etc/init.d/salt-$fname start
|
||||
# Disable stdin to fix shell session hang on killing tee pipe
|
||||
service salt-$fname stop < /dev/null > /dev/null 2>&1
|
||||
service salt-$fname start < /dev/null
|
||||
elif [ -f /usr/bin/systemctl ]; then
|
||||
# CentOS 7 uses systemd
|
||||
/usr/bin/systemctl stop salt-$fname > /dev/null 2>&1
|
||||
|
|
Loading…
Add table
Reference in a new issue