Automate Taler merchant and bank app start after container boot.
Containers only run sleep infinity; host ensure-taler-apps plus user systemd units start postgres, httpd, libeufin, and auto-confirm.
This commit is contained in:
parent
1aa4d1bab8
commit
bd5272ebac
7 changed files with 246 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
[Unit]
|
||||
# Paivana needs merchant private API — start after merchant apps, not only container shell
|
||||
After=taler-merchant-apps.service container-taler-hacktivism.service
|
||||
Wants=taler-merchant-apps.service
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[Unit]
|
||||
Wants=taler-bank-apps.service
|
||||
Before=taler-bank-apps.service
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[Unit]
|
||||
# Pull in in-container app start after the empty sleep infinity shell is up
|
||||
Wants=taler-merchant-apps.service
|
||||
Before=taler-merchant-apps.service
|
||||
14
configs/systemd/user/taler-bank-apps.service
Normal file
14
configs/systemd/user/taler-bank-apps.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Start Taler bank apps inside taler-hacktivism-bank
|
||||
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/taler-shared/ensure-taler-apps.sh
|
||||
After=network-online.target container-taler-hacktivism-bank.service
|
||||
Wants=network-online.target container-taler-hacktivism-bank.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
TimeoutStartSec=300
|
||||
ExecStart=%h/.local/bin/ensure-taler-apps.sh bank
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
15
configs/systemd/user/taler-merchant-apps.service
Normal file
15
configs/systemd/user/taler-merchant-apps.service
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Start Taler merchant apps inside taler-hacktivism
|
||||
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/taler-shared/ensure-taler-apps.sh
|
||||
After=network-online.target container-taler-hacktivism.service
|
||||
Wants=network-online.target container-taler-hacktivism.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
# Merchant start_base + helpers can take a while after cold boot
|
||||
TimeoutStartSec=300
|
||||
ExecStart=%h/.local/bin/ensure-taler-apps.sh merchant
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue