James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start up 971 robot code |
Austin Schuh | 4a97648 | 2021-10-24 17:02:05 -0700 | [diff] [blame] | 3 | Requires=network-online.target |
| 4 | After=network-online.target |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 5 | |
| 6 | [Service] |
Austin Schuh | 66e0005 | 2021-10-23 22:00:52 -0700 | [diff] [blame] | 7 | User=pi |
| 8 | Group=pi |
| 9 | Type=simple |
| 10 | WorkingDirectory=/home/pi/robot_code |
| 11 | ExecStart=/home/pi/robot_code/starter.sh |
| 12 | KillMode=mixed |
| 13 | TimeoutStopSec=10 |
Austin Schuh | a922ad0 | 2021-10-23 23:25:50 -0700 | [diff] [blame] | 14 | LimitRTPRIO=60 |
| 15 | LimitNICE=-20 |
| 16 | LimitMEMLOCK=infinity |
Austin Schuh | 66e0005 | 2021-10-23 22:00:52 -0700 | [diff] [blame] | 17 | |
| 18 | Restart=always |
| 19 | RestartSec=5s |
James Kuszmaul | 2d8fa2a | 2020-03-01 13:51:50 -0800 | [diff] [blame] | 20 | |
| 21 | [Install] |
| 22 | WantedBy=multi-user.target |