wireproxy/rc.d/README.md
lexandr0s 288687b873
Add hint to run Wireproxy as system daemon in rc.d-based system (#164)
* Add hint for rc.d service

* Update README.md

---------

Co-authored-by: root <root@prox1.example.com>
2025-02-18 12:27:18 +00:00

21 lines
812 B
Markdown

# Running wireproxy with rc.d
If you're on a rc.d-based distro, you'll most likely want to run Wireproxy as a systemd unit.
The provided systemd unit assumes you have the wireproxy executable installed on `/bin/wireproxy` and a configuration file stored at `/etc/wireproxy.conf`. These paths can be customized by editing the unit file.
# Setting up the unit
1. Copy the `wireproxy` file from this directory to `/usr/local/etc/rc.d`.
2. If necessary, customize the unit.
Edit the parts with `procname`, `command`, `wireproxy_conf` to point to the executable and the configuration file.
4. Add the following lines to `/etc/rc.conf` to enable wireproxy
`wireproxy_enable="YES"`
5. Start wireproxy service and check status
```
sudo service wireproxy start
sudo service wireproxy status
```