awlsim-server.service.in 625 B

1234567891011121314151617181920212223
  1. [Unit]
  2. Description=Awlsim soft-PLC core server
  3. After=syslog.target
  4. After=network.target
  5. [Service]
  6. Type=simple
  7. TimeoutSec=60
  8. Restart=on-failure
  9. RestartSec=100ms
  10. User=@USER@
  11. Group=@GROUP@
  12. WorkingDirectory=@WORKING_DIRECTORY@
  13. Nice=-15
  14. ExecStart=@PYTHON@ @PREFIX@/bin/awlsim-server -l localhost -4 -S -w @PROJECT@
  15. ExecStartPost=-@PYTHON@ @PREFIX@/bin/awlsim-client -c localhost -r RUN
  16. Environment=PYTHONPATH=@PYTHON_SITE@ PYTHONHASHSEED=0 PYTHONOPTIMIZE=1 PYTHONDONTWRITEBYTECODE=1 AWLSIM_CYTHON=1 AWLSIM_SCHED=realtime-if-multicore AWLSIM_PRIO=50 AWLSIM_AFFINITY=-1,-2,-3 AWLSIM_MLOCK=1
  17. [Install]
  18. WantedBy=multi-user.target