fsh/stk/mesh-bridge.systemd

25 lines
684 B
Plaintext
Executable File

# ...hashbang?
#
# to make accessible to systemd, copy (or symlink?) to '/etc/systemd/system/'
@ eg:
# sudo cp ~/run/stk/mesh-bridge.systemd /etc/systemd/system/mesh-bridge.service
#
# to enable, do '(sudo) systemctl enable filename.service'
#
[Unit]
Description=Proto-mesh, hub&spoke privnet.
ConditionPathExists=|/usr/bin
After=network.target
[Service]
User=bridge
ExecStart=/usr/bin/ssh -NTaC -o ServerAliveInterval=90 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/bridge/.ssh/id_ed25519 -R 59022:localhost:22 bridge@rheos.one
# Restart every >2 seconds to avoid StartLimitInterval failure
RestartSec=13
Restart=always
[Install]
WantedBy=multi-user.target