aboutsummaryrefslogtreecommitdiffstats
path: root/awlsim-server.service
blob: 09a8b4e3826ce9f8fdaed842a002958a996c1345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Awlsim PLC core server
After=network.target

[Service]
Type=simple
TimeoutSec=60
Restart=on-failure
RestartSec=100ms
User=root
Group=root
WorkingDirectory=/etc/awlsim
Nice=-5

ExecStart=/usr/bin/python3 /usr/bin/awlsim-server -l localhost -4 -S -w /etc/awlsim/awlsim-server.awlpro
ExecStartPost=-/usr/bin/python3 /usr/bin/awlsim-client -c localhost -r RUN

Environment=PYTHONPATH=/usr/lib/python3/dist-packages PYTHONHASHSEED=0 PYTHONOPTIMIZE=1 PYTHONDONTWRITEBYTECODE=1 AWLSIM_CYTHON=1 AWLSIM_SCHED= AWLSIM_PRIO= AWLSIM_AFFINITY= AWLSIM_MLOCK=

[Install]
WantedBy=multi-user.target
bues.ch cgit interface