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):
`----lcd.service------` [Unit] Description=LCD [Service] StandardOutput=null Type=simple ExecStart=/home/pi/LCD [Install] WantedBy=multi-user.target
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 .