cfg/.config/systemd/user/ngrok.service
Knut Ahlers 18c2bb3223
Move systemd-units to public dotfiles
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-12-12 00:16:30 +01:00

13 lines
470 B
Desktop File

[Unit]
Description=ngrok port forwarding
[Service]
TimeoutStartSec=0
TimeoutStopSec=0
Restart=on-failure
RestartSec=5
ExecStartPre=/bin/bash -c 'if ! [ -e /home/luzifer/.bin/ngrok ]; then mkdir -p /home/luzifer/.bin && curl -sSLo /tmp/ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip -q /tmp/ngrok.zip -d /home/luzifer/.bin && rm /tmp/ngrok.zip; fi'
ExecStart=/home/luzifer/.bin/ngrok start --none
[Install]
WantedBy=default.target