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

Loading…
Cancel
Save