awlsim-server.service 602 B

12345678910111213141516171819202122
  1. [Unit]
  2. Description=Awlsim PLC core server
  3. After=network.target
  4. [Service]
  5. Type=simple
  6. TimeoutSec=60
  7. Restart=on-failure
  8. RestartSec=100ms
  9. User=root
  10. Group=root
  11. WorkingDirectory=/etc/awlsim
  12. Nice=-5
  13. ExecStart=/usr/bin/python3 /usr/bin/awlsim-server -l localhost -4 -S -w /etc/awlsim/awlsim-server.awlpro
  14. ExecStartPost=-/usr/bin/python3 /usr/bin/awlsim-client -c localhost -r RUN
  15. Environment=PYTHONPATH=/usr/lib/python3/dist-packages PYTHONHASHSEED=0 PYTHONOPTIMIZE=1 PYTHONDONTWRITEBYTECODE=1 AWLSIM_CYTHON=1 AWLSIM_SCHED= AWLSIM_PRIO= AWLSIM_AFFINITY= AWLSIM_MLOCK=
  16. [Install]
  17. WantedBy=multi-user.target