[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