--sslkey=/etc/apache2/ssl/server.key /openils/bin/osrf-websocket-stdio
---------------------------------------------------------------------------
+Optional Systemd Setup
+~~~~~~~~~~~~~~~~~~~~~~
+
+Websocketd is a standalone program with no daemon mode, but can be implemented as a systemd service.
+
+Copy <PREFIX>/examples/websocket-osrf.service.example into file /lib/systemd/system/websocketd-osrf.service
+
+Then add & start the service.
+
+[source,bash]
+--------------------------------------
+sudo systemctl daemon-reload
+sudo systemctl enable websocketd-osrf
+sudo systemctl start websocketd-osrf
+--------------------------------------
+
Optional: Using a web proxy (Apache 2.4 and above)
--------------------------------------------------
When the OpenSRF HTTP Translator runs behind a proxy, Apache must be
--- /dev/null
+[Unit]
+Description=Websocketd OpenSRF Gateway
+
+[Service]
+Type=simple
+User=opensrf
+Group=opensrf
+Environment=PATH=/openils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+Environment=LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH
+ExecStart=/usr/local/bin/websocketd --loglevel error --maxforks 250 --port 7682 /openils/bin/osrf-websocket-stdio
+
+# modify websocketd command line options to taste
+# --sameorigin and --origin=domain1,domain2 flags are also supported for security.
+
+# On Ubuntu 18.04+, you may also need to include something like this:
+[Install]
+WantedBy=multi-user.target