mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2025-01-30 14:27:45 +00:00
731 B
731 B
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