mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Various init script fixes
This commit is contained in:
parent
235ff3a799
commit
692f0c8f2c
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user