Carnegie Mellon University's build18 2025 hackathon.
Team name: Robotron
- Ben Lee
- David Seong
- John Min
- Sidney Nimako
- Weichen Qiu
Using systemctl to start up launch program on reboot
Create and write to service file:
sudo vim /etc/systemd/system/build18.service[Unit]
Description=build18 launch
After=network.target
[Service]
ExecStart=/home/pi/build18/launch.py
WorkingDirectory=/home/pi/build18
StandardOutput=inherit
StandardError=inherit
Restart=no
User=root
Group=root
[Install]
WantedBy=multi-user.targetEnable and start the service
sudo systemctl daemon-reload
sudo systemctl enable build18.service
sudo systemctl start build18.service
sudo systemctl status build18.service
# Get logs
sudo journalctl -u build18.service -f -n 50
# Restart
sudo systemctl restart build18.service