mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
commit
c6e064959c
@ -52,10 +52,10 @@ This will make sure that boringproxy server will always start backup if the host
|
|||||||
Download the boringproxy-client@.service file
|
Download the boringproxy-client@.service file
|
||||||
```bash
|
```bash
|
||||||
# with wget
|
# with wget
|
||||||
wget https://raw.githubusercontent.com/boringproxy/boringproxy/master/systemd/boringproxy-client%40.service -O "/tmp/boringproxy-client@.service"
|
wget https://raw.githubusercontent.com/boringproxy/boringproxy/master/systemd/boringproxy-client.service -O "/tmp/boringproxy-client@.service"
|
||||||
|
|
||||||
# or with curl
|
# or with curl
|
||||||
curl https://raw.githubusercontent.com/boringproxy/boringproxy/master/systemd/boringproxy-client%40.service --output "/tmp/boringproxy-client@.service"
|
curl https://raw.githubusercontent.com/boringproxy/boringproxy/master/systemd/boringproxy-client.service --output "/tmp/boringproxy-client@.service"
|
||||||
|
|
||||||
sudo mv /tmp/boringproxy-client@.service /etc/systemd/system/boringproxy-client@.service
|
sudo mv /tmp/boringproxy-client@.service /etc/systemd/system/boringproxy-client@.service
|
||||||
```
|
```
|
||||||
@ -84,4 +84,4 @@ sudo chown boringproxy:boringproxy /opt/boringproxy/boringproxy_db.json
|
|||||||
### Client Service Unit File
|
### Client Service Unit File
|
||||||
This systemd service file is a template service which allows you to spawn multiple clients with a specified name.
|
This systemd service file is a template service which allows you to spawn multiple clients with a specified name.
|
||||||
|
|
||||||
If you do not need/want the ability to launch multiple clients with a single service file and do not want to have to specify `boringproxy-client@<client-name>.service` when interacting with the service, rename the service file to `boringproxy-client.service` and remove the `%I` from the `Description` field and replace the `%i` after `-client-name` with the name you want the client to have. after those modifications you can use the service as `boringproxy-client.service`
|
If you do not need/want the ability to launch multiple clients with a single service file and do not want to have to specify `boringproxy-client@<client-name>.service` when interacting with the service, rename the service file to `boringproxy-client.service` and remove the `%I` from the `Description` field and replace the `%i` after `-client-name` with the name you want the client to have. after those modifications you can use the service as `boringproxy-client.service`
|
||||||
|
Loading…
Reference in New Issue
Block a user