Create socks5.service

This commit is contained in:
Şafak Soylu 2021-01-22 05:18:38 +03:00 committed by GitHub
parent 98af4973ff
commit d772b38e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
socks5.service Normal file
View File

@ -0,0 +1,18 @@
[Unit]
Description=socks5
After=network.target
[Service]
ExecStart=/opt/ngrok/socks5
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
IgnoreSIGPIPE=true
Restart=always
RestartSec=3
Type=simple
Environment="PROXY_USER=<PROXY_USER>"
Environment="PROXY_PASSWORD=<PROXY_PASSWORD>"
Environment="PROXY_PORT=<PROXY_PORT>"
[Install]
WantedBy=multi-user.target