Various init script fixes

This commit is contained in:
Calin Crisan 2019-01-24 21:38:22 +02:00
parent 235ff3a799
commit 692f0c8f2c
7 changed files with 10 additions and 10 deletions

View File

@ -13,7 +13,7 @@ LINK_WATCH=yes
LINK_WATCH_TIMEOUT=20
test -x {$PROG} || exit 0
test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base

View File

@ -11,8 +11,8 @@ NETWATCH_INTERVAL=20
test -f ${CONF} || exit 0
source ${CONF}
test -z "${NETWATCH_HOST}" || exit 0
test -z "${NETWATCH_PORT}" || exit 0
test -n "${NETWATCH_HOST}" || exit 0
test -n "${NETWATCH_PORT}" || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base

View File

@ -3,14 +3,14 @@
CONF="/etc/sshd_config"
PROG="/usr/sbin/sshd"
KGPROG="/usr/bin/ssh-keygen"
PROG_KG="/usr/bin/ssh-keygen"
test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base
test -x ${CONF} || exit 0
test -f ${CONF} || exit 0
test "${OS_NETWORKLESS}" == "true" && exit 0
@ -19,7 +19,7 @@ start() {
msg_begin "Starting sshd"
# create any missing keys
if ! ${KGPROG} -A >/dev/null; then
if ! ${PROG_KG} -A >/dev/null; then
msg_fail
return 1
fi

View File

@ -9,7 +9,7 @@ test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base
test -n "${OS_DEBUG}" || source /etc/init.d/conf
test -x ${CONF} || exit 0
test -f ${CONF} || exit 0
test "${OS_NETWORKLESS}" == "true" && exit 0

View File

@ -11,7 +11,7 @@ test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base
test -n "${OS_DEBUG}" || source /etc/init.d/conf
test -x ${CONF} || exit 0
test -f ${CONF} || exit 0
test "${OS_NETWORKLESS}" == "true" && exit 0

View File

@ -7,7 +7,7 @@ CONF="/data/etc/mongodb.conf"
PROG="/usr/bin/mongod"
test -x {$PROG} || exit 0
test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base

View File

@ -7,7 +7,7 @@ CONF="/data/etc/redis.conf"
PROG="/usr/bin/redis-server"
test -x {$PROG} || exit 0
test -x ${PROG} || exit 0
test -n "${OS_VERSION}" || source /etc/init.d/base