Closed tarnh closed 4 years ago
You don't need a start_openplc.sh
, a service file like this should do:
[Unit]
Description=OpenPLC Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
User=openplc
Group=openplc
WorkingDirectory=/opt/openplc
ExecStart=/usr/bin/python webserver.py
[Install]
WantedBy=multi-user.target
Make sure you change the path of WorkingDirectory
and make sure that openplc
can write to the directories needed.
Dear Thiago,
I have been working on a PKGBUILD for ArchLinux:
The only missing: How should
start_openplc.sh
look like?