thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
GNU General Public License v3.0
1.08k stars 438 forks source link

WORKING_DIR pointed to the incorrect folder. #149

Closed josenj closed 3 years ago

josenj commented 3 years ago

The function "OPLC_background_service" assigns $WORKING_DIR to $(pwd)/bin and creates the incorrect pointer to the start_openplc.sh service script. Upon bootup I got the following:

May 29 19:42:14 pi1 systemd[563]: openplc.service: Failed to execute command: No such file or directory May 29 19:42:14 pi1 systemd[563]: openplc.service: Failed at step EXEC spawning /home/pi/dev/OpenPLC_v3/bin/start_openplc.sh: No such file or directory

The startup script is in: /home/pi/dev/OpenPLC_v3/start_openplc.sh not in /home/pi/dev/OpenPLC_v3/bin/start_openplc.sh