guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: Avoid failures related to renice and ionice


From: Christopher Baines
Subject: 01/02: Avoid failures related to renice and ionice
Date: Fri, 20 Mar 2020 16:43:21 -0400 (EDT)

cbaines pushed a commit to branch master
in repository data-service.

commit cf4082dbeba98922ad3dacaec34bb0fcab0390cc
Author: Christopher Baines <address@hidden>
AuthorDate: Fri Mar 20 20:40:33 2020 +0000

    Avoid failures related to renice and ionice
    
    These parts of the backup scripts are optional, so don't fail if they don't
    work.
---
 scripts/guix-data-service-backup-database     | 4 ++--
 scripts/guix-data-service-create-small-backup | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/guix-data-service-backup-database 
b/scripts/guix-data-service-backup-database
index 365f78c..3988a49 100755
--- a/scripts/guix-data-service-backup-database
+++ b/scripts/guix-data-service-backup-database
@@ -12,8 +12,8 @@ FULL_BACKUP_NAME="guix_data_service_full.dump"
 TEMPORARY_FILE_NAME="${TMPDIR:-/tmp}/guix_data_service_full-$DATE.dump.tmp"
 DESTINATION_FILE_NAME="$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME"
 
-renice 19 -p $$
-ionice -p $$ -c 3
+renice 19 -p $$ || true
+ionice -p $$ -c 3 || true
 
 pg_dump --format=custom --compress=9 --serializable-deferrable \
         --username=guix_data_service \
diff --git a/scripts/guix-data-service-create-small-backup 
b/scripts/guix-data-service-create-small-backup
index bc6ed8c..6616c52 100755
--- a/scripts/guix-data-service-create-small-backup
+++ b/scripts/guix-data-service-create-small-backup
@@ -15,8 +15,8 @@ fi
 FULL_BACKUP_NAME="guix_data_service_full.dump"
 SMALL_BACKUP_NAME="guix_data_service_small.dump"
 
-renice 19 -p $$
-ionice -p $$ -c 3
+renice 19 -p $$ || true
+ionice -p $$ -c 3 || true
 
 TMP_DATABASE=$(mktemp -d -t guix-data-service-database-XXXX)
 URI=$(pg_tmp -w 0 -d "$TMP_DATABASE")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]