18 lines
558 B
Desktop File
18 lines
558 B
Desktop File
[Unit]
|
|
Description=AWX Network Bridge - Permanent access to AWX on 192.168.1.144:8082
|
|
After=minikube.service
|
|
Requires=minikube.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=alex
|
|
ExecStartPre=/bin/bash -c 'until minikube status | grep -q "Running"; do sleep 5; done'
|
|
ExecStartPre=/bin/bash -c 'until kubectl get pods -n awx | grep awx-web | grep -q Running; do sleep 5; done'
|
|
ExecStart=/usr/bin/socat TCP-LISTEN:8082,bind=192.168.1.144,fork,reuseaddr TCP:192.168.49.2:31080
|
|
Restart=always
|
|
RestartSec=10
|
|
Environment=HOME=/home/alex
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|