Kromek Radangel gamma spectrometer USB HID daemon and WebUI. https://git.unino.de/pvivell/radangel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

websockify.service 632B

12345678910111213141516171819202122232425262728293031323334
  1. [Unit]
  2. Description=Start websockify
  3. After=multi-user.target
  4. [Service]
  5. Type=simple
  6. User=www-data
  7. Group=www-data
  8. Environment=LISTEN_HOST=127.0.0.1
  9. Environment=LISTEN_PORT=5800
  10. Environment=TARGET_HOST=127.0.0.1
  11. Environment=TARGET_PORT=5900
  12. #EnvironmentFile=/etc/default/websockify
  13. PermissionsStartOnly=true
  14. ExecStartPre=/bin/sh -c '\
  15. touch /var/run/websockify.pid; \
  16. chown www-data:www-data /var/run/websockify.pid'
  17. WorkingDirectory=/tmp
  18. ExecStart=/usr/bin/websockify \
  19. ${LISTEN_HOST}:${LISTEN_PORT} \
  20. ${TARGET_HOST}:${TARGET_PORT}
  21. NoNewPrivileges=true
  22. RestartSec=5
  23. Restart=on-failure
  24. [Install]
  25. WantedBy=multi-user.target