mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01: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