mirror of
https://github.com/vincenthsu/systemd-ngrok.git
synced 2025-11-28 10:30:39 +00:00
Create socks5.service
This commit is contained in:
parent
98af4973ff
commit
d772b38e67
18
socks5.service
Normal file
18
socks5.service
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user