stop program startet in rc.local code example
Example: raspberry pi stop an rc.local process
ps aux | grep 'the-name-of-your-program'
# The number in the second column is the pid.
# Use that pid to send the process a termination signal:
sudo kill -KILL [put-your-pid-here]