Compare commits
2 Commits
464362a43e
...
6fe7e455f6
| Author | SHA1 | Date |
|---|---|---|
|
|
6fe7e455f6 | 4 years ago |
|
|
fee9ceaa6b | 4 years ago |
4 changed files with 16 additions and 16 deletions
@ -1,14 +1,14 @@ |
|||
[Unit] |
|||
Description=Load/Dump database on start/stop |
|||
After=syslog.target |
|||
After=network.target |
|||
After=postgresql.service |
|||
Requires=postgresql.service |
|||
|
|||
[Service] |
|||
Type=oneshot |
|||
RemainAfterExit=yes |
|||
ExecStart=/bin/bash -c ". /etc/environment && /usr/local/bin/db-load /vol/data/sql/$DBNAME-updown.sql" |
|||
ExecStop=/bin/bash -c ". /etc/environment && /usr/local/bin/db-dump /vol/data/sql/$DBNAME-updown.sql" |
|||
EnvironmentFile=/etc/environment |
|||
ExecStart=/usr/local/bin/db-load /vol/data/sql/nextcloud-updown.sql |
|||
ExecStop=/usr/local/bin/db-dump /vol/data/sql/nextcloud-updown.sql |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
|||
|
|||
Loading…
Reference in new issue