with the current method to start Peppy from rc.local, one cannot easily restart Peppy (for configuration changes, for instance) and has to reboot the system to restart Peppy.
However, one can easily create a systemd service and start Peppy this way. Here's how:
3. Reload systemd with "systemctl daemon-reload"
4. Enable service with "systemctl enable peppy.service" to have the service run on startup
5. Remove the openvt start line from rc.local
6. stop/start/restart Peppy as needed with "systemctl stop|start|restart peppy.service"
All,
with the current method to start Peppy from rc.local, one cannot easily restart Peppy (for configuration changes, for instance) and has to reboot the system to restart Peppy. However, one can easily create a systemd service and start Peppy this way. Here's how:
[Service] ExecStart=openvt -s -w -- python3 peppy.py WorkingDirectory=/home/pi/Peppy StandardOutput=inherit StandardError=inherit Restart=on-failure
User=pi Group=pi
[Install] WantedBy=multi-user.target