From 280de022cbf68c01d408a9e89a3b63a0ef7e6095 Mon Sep 17 00:00:00 2001 From: yodax Date: Tue, 17 Nov 2015 05:22:42 -0500 Subject: [PATCH] Change order in which service stop --- management/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/backup.py b/management/backup.py index 7a2d2940..cd005010 100755 --- a/management/backup.py +++ b/management/backup.py @@ -220,9 +220,9 @@ def perform_backup(full_backup): full_backup = full_backup or should_force_full(env) # Stop services. - shell('check_call', ["/usr/sbin/service", "dovecot", "stop"]) - shell('check_call', ["/usr/sbin/service", "postfix", "stop"]) shell('check_call', ["/usr/sbin/service", "php5-fpm", "stop"]) + shell('check_call', ["/usr/sbin/service", "postfix", "stop"]) + shell('check_call', ["/usr/sbin/service", "dovecot", "stop"]) # Run a backup of STORAGE_ROOT (but excluding the backups themselves!). # --allow-source-mismatch is needed in case the box's hostname is changed