mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
enable auto-restart for PostgreSQL
This commit is contained in:
parent
a51be5a926
commit
4b179627a2
@ -49,6 +49,6 @@ rsync -pcv --chmod=755 --fsync --preallocate remote-backup $remote:/usr/local/bi
|
||||
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.timer $remote:/etc/systemd/system/remote-backup.timer
|
||||
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/remote-backup.service $remote:/etc/systemd/system/remote-backup.service
|
||||
rsync -pcv --chmod=644 --fsync --preallocate systemd/system/mjolnir.service $remote:/etc/systemd/system/mjolnir.service
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate systemd/system/matterbridge.service.d $remote:/etc/systemd/system/
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate systemd/system/{matterbridge,postgresql}.service.d $remote:/etc/systemd/system/
|
||||
rsync -pcv --chmod=644 --fsync --preallocate backup-public-key.txt cloud-archive.sh $remote:
|
||||
rsync -pcv --chmod=600 --chown postgres:postgres --fsync --preallocate postgres/data/{pg_hba,pg_ident,postgresql}.conf $remote:/var/lib/postgres/data/
|
||||
|
2
systemd/system/postgresql.service.d/local.conf
Normal file
2
systemd/system/postgresql.service.d/local.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
Restart=always
|
Loading…
Reference in New Issue
Block a user