cfg/.config/systemd/user/ngrok.service
Knut Ahlers 0ac1a7a7ee
Add systemd user services
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-02-22 10:35:42 +01:00

14 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