mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix 'stop' for RedHat salt-api init script
This commit is contained in:
parent
40514dc34c
commit
95f31c591d
1 changed files with 1 additions and 8 deletions
9
pkg/rpm/salt-api
Normal file → Executable file
9
pkg/rpm/salt-api
Normal file → Executable file
|
@ -96,14 +96,7 @@ stop() {
|
|||
RETVAL=1
|
||||
fi
|
||||
else
|
||||
if [ -f $PID_FILE ] && cat $PID_FILE | xargs pkill -P &> /dev/null; then
|
||||
success
|
||||
RETVAL=0
|
||||
rm -f $PID_FILE
|
||||
else
|
||||
failure "$PID_FILE does not exist or could not kill."
|
||||
RETVAL=1
|
||||
fi
|
||||
killproc $PROCESS
|
||||
fi
|
||||
RETVAL=$?
|
||||
echo
|
||||
|
|
Loading…
Add table
Reference in a new issue