awlsim-server.service.in 551 Bytes
Newer Older
1 2 3 4 5 6 7
[Unit]
Description=Awlsim soft-PLC core server
After=syslog.target
After=network.target

[Service]
Type=simple
8 9 10
TimeoutSec=60
Restart=on-failure
RestartSec=100ms
11 12
User=@USER@
Group=@GROUP@
Michael Büsch's avatar
Michael Büsch committed
13
Nice=-15
14

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

18
Environment=PYTHONPATH=@PYTHON_SITE@ PYTHONHASHSEED=0 PYTHONOPTIMIZE=2 PYTHONDONTWRITEBYTECODE=1 AWLSIM_CYTHON=1 AWLSIM_SCHED=realtime AWLSIM_PRIO=50 AWLSIM_AFFINITY=-1
19 20 21

[Install]
WantedBy=multi-user.target