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
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