|
@ -23,11 +23,13 @@ set -e |
|
|
|
|
|
|
|
|
SVID="${PWD##*/}" |
|
|
SVID="${PWD##*/}" |
|
|
RUN= |
|
|
RUN= |
|
|
|
|
|
RUNOPT= |
|
|
|
|
|
|
|
|
[ -z "$SCRIPT" ] || . "$PROGNAME" |
|
|
[ -z "$SCRIPT" ] || . "$PROGNAME" |
|
|
|
|
|
|
|
|
if [ -n "$RUN" ]; then |
|
|
if [ -n "$RUN" ]; then |
|
|
exec "$RUN" |
|
|
|
|
|
|
|
|
[ -z "$RUNOPT" ] || eval "set -- $RUNOPT $*" |
|
|
|
|
|
exec "$RUN" "$@" |
|
|
else |
|
|
else |
|
|
echo "$PROGNAME: no daemon to RUN defined" >&2 |
|
|
echo "$PROGNAME: no daemon to RUN defined" >&2 |
|
|
exit 1 |
|
|
exit 1 |
|
|