Had a brain fart - just echo to fd3
This commit is contained in:
parent
52664d77f9
commit
6c54d47341
@ -6,29 +6,19 @@
|
|||||||
. /etc/init.d/functions.sh
|
. /etc/init.d/functions.sh
|
||||||
|
|
||||||
need() {
|
need() {
|
||||||
exec 1>&3
|
[ -n "$*" ] && echo "${SVCNAME} ineed $*" >&3
|
||||||
[ -n "$*" ] && echo "${SVCNAME} ineed $*"
|
|
||||||
exec 1>&2
|
|
||||||
}
|
}
|
||||||
use() {
|
use() {
|
||||||
exec 1>&3
|
[ -n "$*" ] && echo "${SVCNAME} iuse $*" >&3
|
||||||
[ -n "$*" ] && echo "${SVCNAME} iuse $*"
|
|
||||||
exec 1>&2
|
|
||||||
}
|
}
|
||||||
before() {
|
before() {
|
||||||
exec 1>&3
|
[ -n "$*" ] && echo "${SVCNAME} ibefore $*" >&3
|
||||||
[ -n "$*" ] && echo "${SVCNAME} ibefore $*"
|
|
||||||
exec 1>&2
|
|
||||||
}
|
}
|
||||||
after() {
|
after() {
|
||||||
exec 1>&3
|
[ -n "$*" ] && echo "${SVCNAME} iafter $*" >&3
|
||||||
[ -n "$*" ] && echo "${SVCNAME} iafter $*"
|
|
||||||
exec 1>&2
|
|
||||||
}
|
}
|
||||||
provide() {
|
provide() {
|
||||||
exec 1>&3
|
[ -n "$*" ] && echo "${SVCNAME} iprovide $*" >&3
|
||||||
[ -n "$*" ] && echo "${SVCNAME} iprovide $*"
|
|
||||||
exec 1>&2
|
|
||||||
}
|
}
|
||||||
depend() {
|
depend() {
|
||||||
:
|
:
|
||||||
@ -48,17 +38,14 @@ for SVCNAME in * ; do
|
|||||||
|
|
||||||
rc_c=${SVCNAME%%.*}
|
rc_c=${SVCNAME%%.*}
|
||||||
if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
|
if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
|
||||||
[ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2
|
[ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}"
|
||||||
fi
|
fi
|
||||||
unset rc_c
|
unset rc_c
|
||||||
|
|
||||||
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2
|
[ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}"
|
||||||
|
|
||||||
if . /etc/init.d/"${SVCNAME}" ; then
|
if . /etc/init.d/"${SVCNAME}" ; then
|
||||||
exec 1>&3
|
echo "${SVCNAME}" >&3
|
||||||
echo "${SVCNAME}"
|
|
||||||
exec 1>&2
|
|
||||||
|
|
||||||
depend
|
depend
|
||||||
|
|
||||||
# Add any user defined depends
|
# Add any user defined depends
|
||||||
|
Loading…
Reference in New Issue
Block a user