Commit 50489ae
fix: nginx falhando no firstboot por corrida com 15regen-sslcert (#11)
O nginx pode subir enquanto o hook comum 15regen-sslcert regenera o par
cert/chave e ler um par inconsistente (SSL key values mismatch); como o
hook só reinicia serviços ativos, o nginx ficava failed até intervenção
manual. Duas camadas: drop-in com Restart=on-failure (auto-recupera
sozinho ~10s após a regeneração) e restart incondicional do nginx no fim
do inithook do opencloud.
Co-authored-by: Marcos <m@pop.coop>1 parent ad24780 commit 50489ae
3 files changed
Lines changed: 18 additions & 0 deletions
File tree
- overlay
- etc/systemd/system/nginx.service.d
- usr/lib/inithooks/bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
0 commit comments