Skip to content

Commit

Permalink
Add $DIST_CHUNKS option to the start scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 7, 2010
1 parent 02c5692 commit be51b95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/start_scripts/freebsd
Expand Up @@ -23,6 +23,10 @@ DIST_PASSWORD=
# The interval between bric_queued runs.
DIST_INTERVAL=30

# Maximum number of distribution jobs to select for each bric_queued run.
# 0 is no maximum
DIST_CHUNKS=0

# Various file locations.
BRIC_APACHECTL="$BRICOLAGE_ROOT/bin/bric_apachectl"
BRIC_QUEUED="$BRICOLAGE_ROOT/bin/bric_queued"
Expand All @@ -39,6 +43,7 @@ case "$1" in
--password "$DIST_PASSWORD" \
--log "$DIST_LOG" \
--pid "$DIST_PIDFILE" --delay "$DIST_INTERVAL"
--chunks "$DIST_CHUNKS"
fi
echo -n ' bricolage'
;;
Expand All @@ -62,6 +67,7 @@ case "$1" in
--password "$DIST_PASSWORD" \
--log "$DIST_LOG" \
--pid "$DIST_PIDFILE" --delay "$DIST_INTERVAL"
--chunks "$DIST_CHUNKS"
fi
echo -n ' bricolage'
;;
Expand Down
6 changes: 6 additions & 0 deletions contrib/start_scripts/linux
Expand Up @@ -21,6 +21,10 @@ DIST_PASSWORD=
# The interval between bric_queued runs.
DIST_INTERVAL=30

# Maximum number of distribution jobs to select for each bric_queued run.
# 0 is no maximum
DIST_CHUNKS=0

# Various file locations.
BRIC_APACHECTL="$BRICOLAGE_ROOT/bin/bric_apachectl"
BRIC_QUEUED="$BRICOLAGE_ROOT/bin/bric_queued"
Expand Down Expand Up @@ -57,6 +61,7 @@ if [ $USE_BRIC_QUEUED ]; then
--password "$DIST_PASSWORD" \
--log "$DIST_LOG" \
--pid "$DIST_PIDFILE" --delay "$DIST_INTERVAL"
--chunks "$DIST_CHUNKS"
echo bric_queued: started
;;
stop)
Expand All @@ -73,6 +78,7 @@ if [ $USE_BRIC_QUEUED ]; then
--password "$DIST_PASSWORD" \
--log "$DIST_LOG" \
--pid "$DIST_PIDFILE" --delay "$DIST_INTERVAL"
--chunks "$DIST_CHUNKS"
echo bric_queued: restarted
;;
esac;
Expand Down

0 comments on commit be51b95

Please sign in to comment.