forked from johnboiles/pi-rtlsdr-igate-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-igate.service.example
35 lines (32 loc) · 1.32 KB
/
docker-igate.service.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[Unit]
Description=APRS iGate container
Requires=docker.service
After=docker.service
[Service]
# Uncomment to have systemd automatically restart this process if it fails
#Restart=always
# You must fill in MYCALL & APRS_PASSWORD for this to work.
# To send a PBEACON (fixed) for this station, uncomment and fill in LATITUDE, LONGITUDE
# To send a TBEACON (dynamic) for this station, uncomment and fill in either
# 1) NMEA_GPS with a serial device connected to a NMEA GPSD or
# 2) GPSD_HOST (and optionally GPSD_PORT) to point to a running gpsd instance
# For both PBEACON and TBEACON you can optionally provide a COMMENT
# Systemd isn't very good at environment variables with spaces in them, so you have to do it like this
Environment='COMMENT=RaspberryPi + RTL-SDR + Direwolf'
# To set an IGFILTER, uncomment and fill in the IGFILTER line
# In case we didn't shut down properly, try to remove any container with the same name
ExecStartPre=-/usr/bin/docker rm -f docker-igate
ExecStart=/usr/bin/docker run --name docker-igate --privileged \
-e MYCALL= \
-e APRS_PASSWORD= \
# -e IGFILTER= \
# -e LATITUDE= \
# -e LONGITUDE= \
# -e NMEA_GPS=/dev/ttyACM0 \
# -e GPSD_HOST=localhost \
# -e GPSD_PORT=2947 \
# -e COMMENT=${COMMENT} \
johnboiles/pi-rtlsdr-igate
ExecStop=/usr/bin/docker stop -t 2 docker-igate
[Install]
WantedBy=default.target