[Unit]
Description=Awlsim soft-PLC core server
After=syslog.target
After=network.target

[Service]
Type=simple
TimeoutSec=300
User=@USER@
Group=@GROUP@
Nice=-15

ExecStart=@PREFIX@/bin/awlsim-server -l localhost -4 -w @PROJECT@
ExecStartPost=-@PREFIX@/bin/awlsim-client -C localhost -r RUN

Environment=PYTHONPATH=@PYTHON_SITE@ AWLSIM_CYTHON=1

[Install]
WantedBy=multi-user.target
