mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #37496 from mcalmer/fix-status-handling-in-sysv-init-scripts
fix status handling in sysv init scripts
This commit is contained in:
commit
41bd8e3f52
4 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,7 @@ case "$1" in
|
|||
echo -n "Checking for service salt-api "
|
||||
checkproc $SALTAPI
|
||||
rc_status -v
|
||||
RETVAL=$?
|
||||
elif [ -f $DEBIAN_VERSION ]; then
|
||||
if [ -f $LOCKFILE ]; then
|
||||
RETVAL=0
|
||||
|
|
|
@ -108,6 +108,7 @@ case "$1" in
|
|||
echo -n "Checking for service salt-master "
|
||||
checkproc $SALTMASTER
|
||||
rc_status -v
|
||||
RETVAL=$?
|
||||
elif [ -f $DEBIAN_VERSION ]; then
|
||||
if [ -f $LOCKFILE ]; then
|
||||
RETVAL=0
|
||||
|
|
|
@ -57,6 +57,7 @@ start() {
|
|||
if [ -f $SUSE_RELEASE ]; then
|
||||
startproc -p /var/run/$SERVICE.pid $SALTMINION -d $MINION_ARGS
|
||||
rc_status -v
|
||||
RETVAL=$?
|
||||
elif [ -e $DEBIAN_VERSION ]; then
|
||||
if [ -f $LOCKFILE ]; then
|
||||
echo -n "already started, lock file found"
|
||||
|
@ -114,6 +115,7 @@ case "$1" in
|
|||
echo -n "Checking for service salt-minion "
|
||||
checkproc $SALTMINION
|
||||
rc_status -v
|
||||
RETVAL=$?
|
||||
elif [ -f $DEBIAN_VERSION ]; then
|
||||
if [ -f $LOCKFILE ]; then
|
||||
RETVAL=0
|
||||
|
|
|
@ -109,6 +109,7 @@ case "$1" in
|
|||
echo -n "Checking for service salt-syndic "
|
||||
checkproc $SALTSYNDIC
|
||||
rc_status -v
|
||||
RETVAL=$?
|
||||
elif [ -f $DEBIAN_VERSION ]; then
|
||||
if [ -f $LOCKFILE ]; then
|
||||
RETVAL=0
|
||||
|
|
Loading…
Add table
Reference in a new issue