Create wireproxy.service

This commit is contained in:
villepeh 2023-07-14 15:46:30 +03:00 committed by GitHub
parent e4909d0abb
commit 94c1c03d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
systemd/wireproxy.service Normal file
View file

@ -0,0 +1,18 @@
[Unit]
Description=Wireproxy socks5/http tunnel
Wants=network-online.target
After=network-online.target
[Service]
#Uncomment and/or change these if you don't want to run Wireproxy as root
#User=wireproxy
#Group=wireproxy
Type=simple
Restart=on-failure
RestartSec=30s
ExecStartPre=/opt/wireproxy/wireproxy -n -c /etc/wireproxy.conf
ExecStart=/opt/wireproxy/wireproxy -c /etc/wireproxy.conf
SyslogIdentifier=wireproxy
[Install]
WantedBy=multi-user.target