From 4d866619cd75c7e38080de31aa9407770406937f Mon Sep 17 00:00:00 2001 From: Jonathan Weth Date: Wed, 29 Jul 2020 16:21:09 +0200 Subject: Add config and docs for activation by D-Bus --- docs/admin/04_dbus.rst | 23 +++++++++++++++++++++++ org.ArcticaProject.RWA.service | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 docs/admin/04_dbus.rst create mode 100644 org.ArcticaProject.RWA.service diff --git a/docs/admin/04_dbus.rst b/docs/admin/04_dbus.rst new file mode 100644 index 0000000..b9a1c5f --- /dev/null +++ b/docs/admin/04_dbus.rst @@ -0,0 +1,23 @@ +Installation with D-Bus activation +================================== + +The recommended way to install the RWA Session Service is as +systemd unit file started by the D-Bus daemon automatically. + +As a first step use ``apt`` to globally install the dependencies as debian packages: + +:: + + sudo apt install python3 python3-venv python3-pip x11vnc libcairo2-dev libdbus-glib-1-dev libgirepository1.0-dev wget \ + python3-flask python3-requests python3-port-for python3-websockify python3-dbus python3-gi python3-psutil + +Then make sure the source code is located in ``/opt/rwa-session-service``, so the service can reach it. + +As last thing, you have to create a symlink (or copy the file) to ``org.ArcticaProject.RWA.service``. + +:: + + sudo ln -s /opt/rwa-session-service/org.ArcticaProject.RWA.service /usr/share/dbus-1/services/org.ArcticaProject.RWA.service + +With this installed, you can easily send commands to the dbus daemon, which then automatically will check if there is +already running a service or if the service has to be started – no further action is required by you. \ No newline at end of file diff --git a/org.ArcticaProject.RWA.service b/org.ArcticaProject.RWA.service new file mode 100644 index 0000000..b545df9 --- /dev/null +++ b/org.ArcticaProject.RWA.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.ArcticaProject.RWA +Exec=/opt/rwa-session-service/service.py -o -- cgit v1.2.3