FreeBSD Bugzilla – Attachment 191232 Details for
Bug 218448
sysutils/boxbackup: periodic script needs anticongestion sleep
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add an anticongestion sleep to boxbackup's monthly periodic job
218448.diff (text/plain), 2.66 KB, created by
Alan Somers
on 2018-03-05 20:15:18 UTC
(
hide
)
Description:
Add an anticongestion sleep to boxbackup's monthly periodic job
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2018-03-05 20:15:18 UTC
Size:
2.66 KB
patch
obsolete
>Index: sysutils/boxbackup/Makefile >=================================================================== >--- sysutils/boxbackup/Makefile (revision 463666) >+++ sysutils/boxbackup/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= boxbackup > PORTVERSION= 0.11.1 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= sysutils > MASTER_SITES= SF > PKGNAMESUFFIX= ${CLIENT_OR_SERVER} >Index: sysutils/boxbackup/files/999.boxbackup.in >=================================================================== >--- sysutils/boxbackup/files/999.boxbackup.in (revision 463666) >+++ sysutils/boxbackup/files/999.boxbackup.in (working copy) >@@ -38,6 +38,13 @@ > source_periodic_confs > fi > >+SLEEP=/bin/sleep >+JOT=/usr/bin/jot >+ >+random() { >+ ${JOT} -r 1 0 900 >+} >+ > rc=0 > > case "$monthly_boxbackup_compare_enable" in >@@ -44,6 +51,17 @@ > [Yy][Ee][Ss]) > echo > echo "Running Box Backup store compare:" >+ # When non-interactive, sleep to reduce congestion on rkhunter >+ # site >+ if [ "$1" != -nodelay ]; then >+ # In FreeBSD 12.0 the anticongestion function should >+ # be used instead of a hard-coded sleep >+ if [ -n "$anticongestion_sleeptime" ]; then >+ anticongestion >+ else >+ ${SLEEP} $(random) >+ fi >+ fi > %%PREFIX%%/sbin/bbackupquery -q "compare -c $monthly_boxbackup_compare_args" quit > > # Return codes: >Index: sysutils/boxbackup-devel/Makefile >=================================================================== >--- sysutils/boxbackup-devel/Makefile (revision 463666) >+++ sysutils/boxbackup-devel/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= boxbackup > PORTVERSION= 0.11.r${SVNVERSION:C/^[0-9\.]+_[a-z]+_([0-9]+)/\1/} >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= http://www.boxbackup.org/snapshots/201108/ > PKGNAMESUFFIX= ${CLIENT_OR_SERVER}-devel >Index: sysutils/boxbackup-devel/files/999.boxbackup.in >=================================================================== >--- sysutils/boxbackup-devel/files/999.boxbackup.in (revision 463666) >+++ sysutils/boxbackup-devel/files/999.boxbackup.in (working copy) >@@ -38,6 +38,13 @@ > source_periodic_confs > fi > >+SLEEP=/bin/sleep >+JOT=/usr/bin/jot >+ >+random() { >+ ${JOT} -r 1 0 900 >+} >+ > rc=0 > > case "$monthly_boxbackup_compare_enable" in >@@ -44,6 +51,17 @@ > [Yy][Ee][Ss]) > echo > echo "Running Box Backup store compare:" >+ # When non-interactive, sleep to reduce congestion on rkhunter >+ # site >+ if [ "$1" != -nodelay ]; then >+ # In FreeBSD 12.0 the anticongestion function should >+ # be used instead of a hard-coded sleep >+ if [ -n "$anticongestion_sleeptime" ]; then >+ anticongestion >+ else >+ ${SLEEP} $(random) >+ fi >+ fi > %%PREFIX%%/sbin/bbackupquery -q "compare -c $monthly_boxbackup_compare_args" quit > > # Return codes:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
portmaster
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 218448
: 191232