diff options
author | Jonathan Weth <git@jonathanweth.de> | 2020-07-29 16:21:09 +0200 |
---|---|---|
committer | Jonathan Weth <git@jonathanweth.de> | 2020-07-29 16:21:09 +0200 |
commit | 4d866619cd75c7e38080de31aa9407770406937f (patch) | |
tree | 0d7a6dc32962ded0b106c5836b8887ed0186b520 | |
parent | 3187df811af566cf3bc648a65fcc8a516420ed47 (diff) | |
download | RWA.Support.SessionService-4d866619cd75c7e38080de31aa9407770406937f.tar.gz RWA.Support.SessionService-4d866619cd75c7e38080de31aa9407770406937f.tar.bz2 RWA.Support.SessionService-4d866619cd75c7e38080de31aa9407770406937f.zip |
Add config and docs for activation by D-Bus
-rw-r--r-- | docs/admin/04_dbus.rst | 23 | ||||
-rw-r--r-- | org.ArcticaProject.RWA.service | 3 |
2 files changed, 26 insertions, 0 deletions
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 |