Chore: Updated bake pies to current services

This commit is contained in:
2023-08-17 22:17:09 +05:30
parent cb3657615a
commit e8a33cd80e
5 changed files with 32 additions and 31 deletions

View File

@ -1,12 +1,13 @@
[Unit]
Description=Frank container service
After=docker.service beacon-redis-tunnel.service
Wants=network-online.target docker.socket beacon-redis-tunnel.service
Requires=docker.socket beacon-redis-tunnel.service
PartOf=beacon-redis-tunnel.service
After=docker.service rohan-redis-tunnel.service
Wants=network-online.target docker.socket rohan-redis-tunnel.service
Requires=docker.socket rohan-redis-tunnel.service
PartOf=rohan-redis-tunnel.service
[Service]
Restart=always
RestartSec=3
ExecStart=/usr/bin/docker start -a frank
ExecStop=/usr/bin/docker stop -t 10 frank

View File

@ -6,7 +6,7 @@ After=network.target
Type=simple
User=pi
ExecStart=/usr/bin/ssh -NTg -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_rsa -R {{ ssh_port }}:localhost:22 tanshu@beacon.tanshu.com
ExecStart=/usr/bin/ssh -NTg -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_ed25519 -R {{ ssh_port }}:localhost:22 tanshu@rohan.tanshu.com
# Restart every >2 seconds to avoid StartLimitInterval failure
Restart=always

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
User=pi
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_rsa -L 6379:localhost:6379 tanshu@beacon.tanshu.com
ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=30 -o ExitOnForwardFailure=yes -o ServerAliveCountMax=2 -o StrictHostKeyChecking=no -i /home/pi/.ssh/id_ed25519 -L 6379:localhost:6379 tanshu@rohan.tanshu.com
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=5