-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Romain Tourte edited this page Jul 7, 2018
·
5 revisions
Used to track Raspberry GPS Position.
Create a script on /lib/systemd/system sudo nano /lib/systemd/system/tamata-gps.service
[Unit]
Description=Tamata Gps Tracker
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/code/Tamata-GpsD/GpsPython/GPS.py
Restart=on-abort
[Install]
WantedBy=multi-user.target
`
chmod 644 /lib/systemd/system/tamata-gps.service
chmod +x /lib/systemd/system/tamata-gps.service
sudo systemctl daemon-reload
sudo systemctl enable tamata-gps.service
sudo systemctl start tamata-gps.service
sudo systemctl stop tamata-gps.service
Log file will be generated as .txt at /home/pi/code/Tamata-GpsD/GpsPython/log directory