21 lines
572 B
Bash
Executable file
21 lines
572 B
Bash
Executable file
#!/bin/ksh
|
|
|
|
# "meta" script running the following rc.d(8) scripts with the given argument;
|
|
# note that "daemon_*" variables are not passed to the child scripts.
|
|
_pkg_scripts="gromox_event gromox_timer gromox_http gromox_midb gromox_zcore gromox_imap gromox_pop3 gromox_delivery gromox_delivery_queue"
|
|
|
|
if [[ $1 == restart ]]; then
|
|
$0 stop && $0 start
|
|
exit
|
|
fi
|
|
|
|
if [[ $1 == stop ]]; then
|
|
for _i in ${_pkg_scripts}; do _l="${_i} ${_l}"; done
|
|
_pkg_scripts=${_l% }
|
|
fi
|
|
|
|
for _i in ${_pkg_scripts}; do
|
|
if [[ -x ${RCDIR}/${_i} ]]; then
|
|
${RCDIR}/${_i} $@ || exit $?
|
|
fi
|
|
done
|