Browse Source

Uses monit to stop/start postgres for tarsnap

James Ravn 10 years ago
parent
commit
3f45b1bee4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      roles/tarsnap/files/tarsnap.sh

+ 2
- 2
roles/tarsnap/files/tarsnap.sh View File

@@ -55,7 +55,7 @@ else
55 55
 fi
56 56
 
57 57
 # Stop postgres
58
-service postgresql stop
58
+monit stop postgres
59 59
 
60 60
 # Do backups
61 61
 for dir in $DIRS; do
@@ -64,7 +64,7 @@ for dir in $DIRS; do
64 64
 done
65 65
 
66 66
 # Start postgres
67
-service postgresql start
67
+monit start postgres
68 68
 
69 69
 # Backups done, time for cleaning up old archives
70 70
 

Loading…
Cancel
Save