Tried putting them both in an executable bash and it still not working. Nothing on boot and "systemctl start" just sits there until I Ctrl+C. "systemctl status" is only showing the first line..?
Code:
#!/bin/bashwhile truedo sudo chmod 777 /dev/gpiomem sudo /home/mine/rgbmatrix/bin/python3 /home/mine/rpi-rgb-led-matrix/bindings/python/samples/mine.py --led-rows=32 --led-cols=64 --led-gpio-mapping=adafruit-hat-pwmdoneCode:
sudo systemctl status sample.service● sample.service - My Sample Service Loaded: loaded (/lib/systemd/system/sample.service; enabled; preset: enabled) Active: activating (start) since Thu 2026-02-26 21:27:05 CST; 11min ago Main PID: 660 (script.sh) Tasks: 2 (limit: 385) CPU: 7.636s CGroup: /system.slice/sample.service ├─660 /bin/bash /usr/bin/script.sh └─966 sleep 10Feb 26 21:38:13 BathroomC244 sudo[955]: pam_unix(sudo:session): session closed for user rootFeb 26 21:38:23 BathroomC244 sudo[958]: mine : PWD=/ ; USER=root ; COMMAND=/usr/bin/chmod 777 /dev/gpiomemFeb 26 21:38:23 BathroomC244 sudo[958]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)Feb 26 21:38:23 BathroomC244 sudo[958]: pam_unix(sudo:session): session closed for user rootFeb 26 21:38:33 BathroomC244 sudo[961]: mine : PWD=/ ; USER=root ; COMMAND=/usr/bin/chmod 777 /dev/gpiomemFeb 26 21:38:33 BathroomC244 sudo[961]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)Feb 26 21:38:33 BathroomC244 sudo[961]: pam_unix(sudo:session): session closed for user rootFeb 26 21:38:43 BathroomC244 sudo[964]: mine : PWD=/ ; USER=root ; COMMAND=/usr/bin/chmod 777 /dev/gpiomemFeb 26 21:38:43 BathroomC244 sudo[964]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)Feb 26 21:38:43 BathroomC244 sudo[964]: pam_unix(sudo:session): session closed for user rootStatistics: Posted by niqht — Fri Feb 27, 2026 3:50 am