Sfoglia il codice sorgente

Uses monit to stop/start postgres for tarsnap

James Ravn 10 anni fa
parent
commit
3f45b1bee4
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      roles/tarsnap/files/tarsnap.sh

+ 2
- 2
roles/tarsnap/files/tarsnap.sh Vedi 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…
Annulla
Salva