Use a helper to start dump1090-fa so we can read ENABLED from the defaults file, like beast-splitter does
This commit is contained in:
parent
0946d5165d
commit
d66a05b019
4 changed files with 42 additions and 8 deletions
7
debian/dump1090-fa.service
vendored
7
debian/dump1090-fa.service
vendored
|
@ -7,17 +7,14 @@ Wants=network.target
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/dump1090-fa
|
||||
EnvironmentFile=-/var/cache/piaware/location.env
|
||||
User=dump1090
|
||||
RuntimeDirectory=dump1090-fa
|
||||
RuntimeDirectoryMode=0755
|
||||
ExecStart=/usr/bin/dump1090-fa \
|
||||
$RECEIVER_OPTIONS $DECODER_OPTIONS $NET_OPTIONS $JSON_OPTIONS $PIAWARE_DUMP1090_LOCATION_OPTIONS \
|
||||
--write-json /run/dump1090-fa --quiet
|
||||
ExecStart=/usr/share/dump1090-fa/start-dump1090-fa --write-json /run/dump1090-fa --quiet
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
RestartSec=30
|
||||
RestartPreventExitStatus=64
|
||||
Nice=-5
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue