Service start/stop shortcut
A kiosk-style FR201 typically launches a fullscreen browser or dashboard on boot via a systemd service. That’s great in production and miserable when you need to troubleshoot — every time you escape to a TTY, the service relaunches the dashboard before you can type anything useful.
The fix: drop two single-letter scripts (s to stop, r to restart) onto the device’s PATH. When you break out to the console, you can stop the service in two keystrokes (s, Enter) before it has a chance to take the screen back.
Create the shortcuts
Section titled “Create the shortcuts”Replace kiosk.service with the actual unit name on your device.
-
Write the
s(stop) command to/usr/local/bin/:Create the stop shortcut sudo tee /usr/local/bin/s > /dev/null << 'EOF'#!/bin/bashsudo systemctl stop kiosk.serviceecho "Kiosk service stopped"EOF -
Write the
r(restart) command:Create the restart shortcut sudo tee /usr/local/bin/r > /dev/null << 'EOF'#!/bin/bashsudo systemctl restart kiosk.serviceecho "Kiosk service restarted"EOF -
Mark both executable:
Mark the shortcuts executable sudo chmod +x /usr/local/bin/s /usr/local/bin/r
/usr/local/bin/ is on every user’s PATH by default, so any account on the device — including a non-pi kiosk user — can run s or r from anywhere.
Use the shortcuts
Section titled “Use the shortcuts”When the dashboard is up and you need to break out:
- Switch to a TTY (Ctrl+Alt+F2 usually works) or kill the X session, depending on how the kiosk is configured.
- Log in.
- Type
sand hit Enter. The service stops and stays stopped until you runr.
When you’re done troubleshooting, type r to bring the dashboard back.