i have an 16*2 char LCD connected to PI ,a C++ code is written to display "Date/Time" on LCD. when i execute the compiled code on terminal using sudo ./LCD it stats showing Time and when i terminate it via pressing ctrl + C the LCD goes blank so far so good !

afterwards i built a unit file "lcd.service" containing these lines(so that the code start on boot automatically):




now using systemctl service start lcd.service the LCD starts showing "Time" and when i use systemctl service stop lcd.service it "time" freezes on display, and sysytemd status shows "service is stopped"

why LCD freezes after stopping the service while it was blank without using systemd .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.