mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2025-01-29 22:15:10 +00:00
.. | ||
mount-origin | ||
CMakeLists.txt | ||
lws-minimal-http-server-systemd-socketact.service | ||
lws-minimal-http-server-systemd-socketact.socket | ||
minimal-http-server-systemd-socketact.c | ||
README.md |
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