File: virtualgps.service

package info (click to toggle)
virtualgps 1.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: python: 81; sh: 24; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File to be placed under /etc/systemd/system/
[Unit]
Description=Virtual GPS
After=multi-user.target gpsd.socket

[Service]
Type=idle
User=gpsd
ExecStart=/usr/bin/python3 /usr/bin/virtualgps.py
ExecStartPost=sleep 3
ExecStartPost=+/usr/sbin/gpsdctl add /tmp/vgps
ExecStopPost=+/usr/sbin/gpsdctl remove /tmp/vgps
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target