1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples-lowlevel/http-server/minimal-http-server-systemd-socketact/README.md

24 lines
731 B
Markdown
Raw Normal View History

2024-01-04 08:15:40 +00:00
# lws minimal http server systemd socketact
## build
```
$ cmake . && make && sudo make install
```
This will by default install to `/usr/local` and the systemd pieces to `/usr/local/lib/systemd/system`
Assets will go to `/usr/local/share/lws-minimal-http-server-systemd-socketact/` and
the test app will know to fetch things from there.
## configure
```
$ systemctl --user link /usr/local/lib/systemd/system/lws-minimal-http-server-systemd-socketact.service /usr/local/lib/systemd/system/lws-minimal-http-server-systemd-socketact.socket
$ systemctl --user start lws-minimal-http-server-systemd-socketact.socket
```
Then the test server should be autoexecuted by systemd if you try to browse to `http://127.0.0.1:7681`