Debugging - gdamjan/tt-rss-service GitHub Wiki
Run without nginx
By the default the portable service will only listen to the uwsgi protocol socket /run/tt-rss.sock
, suitable for use with nginx.
We can change the protocol to http, by adding a drop-in to the tt-rss.service
like this:
# /etc/systemd/system/tt-rss.service.d/override.conf
[Service]
Environment=UWSGI_PROTOCOL=http
We can also make the socket listen to a TCP port, by adding this drop-in to the tt-rss.socket
unit:
# /etc/systemd/system/tt-rss.socket.d/override.conf
[Socket]
ListenStream=8080
Attach and detach the service at --runtime:
Using the --runtime
flag to portablectl
makes these action non-persistent:
portablectl attach --now --runtime ./tt-rss.raw
systemctl cat tt-rss.service tt-rss.socket
systemctl start tt-rss.service
systemctl stop tt-rss.service
portablectl detach --now --runtime tt-rss
Run a container on the image:
systemd-nspawn can start a container right from the image:
sudo systemd-nspawn -i ./tt-rss.raw bash