add startup scripts and configs
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", GROUP="plugdev", MODE="0660"
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="plugdev", MODE="0660"
|
||||
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=dump1090-fa ADS-B receiver (FlightWall)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=dump1090
|
||||
EnvironmentFile=__INSTALL_DIR__/flightwall.conf
|
||||
RuntimeDirectory=flightwall-dump1090
|
||||
RuntimeDirectoryMode=0755
|
||||
ExecStart=/usr/local/bin/flightwall-dump1090 --device-type rtlsdr --net --quiet --lat ${LAT} --lon ${LON} --write-json %t/flightwall-dump1090 $DUMP1090_ARGS
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
Nice=-5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=dump1090 web UI (FlightWall)
|
||||
After=flightwall-dump1090.service
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
ExecStart=/usr/sbin/lighttpd -D -f /etc/flightwall/lighttpd.conf
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=FlightWall LED display
|
||||
After=network.target flightwall-dump1090.service
|
||||
Wants=flightwall-dump1090.service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=__INSTALL_DIR__/flightwall.conf
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
ExecStart=__INSTALL_DIR__/app --lat ${LAT} --lon ${LON} --ip ${SBS_IP} --port ${SBS_PORT} --stale ${STALE_SECONDS}
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,23 @@
|
||||
server.modules = ("mod_alias", "mod_setenv")
|
||||
server.port = __WEB_PORT__
|
||||
server.document-root = "/usr/local/share/flightwall/html"
|
||||
server.errorlog = "/dev/stderr"
|
||||
server.stat-cache-engine = "disable"
|
||||
index-file.names = ("index.html")
|
||||
|
||||
alias.url = ("/data/" => "/run/flightwall-dump1090/")
|
||||
|
||||
setenv.add-response-header = ("Cache-Control" => "no-cache")
|
||||
|
||||
mimetype.assign = (
|
||||
".html" => "text/html",
|
||||
".css" => "text/css",
|
||||
".js" => "application/javascript",
|
||||
".json" => "application/json",
|
||||
".geojson" => "application/json",
|
||||
".png" => "image/png",
|
||||
".gif" => "image/gif",
|
||||
".svg" => "image/svg+xml",
|
||||
".ico" => "image/x-icon",
|
||||
".txt" => "text/plain"
|
||||
)
|
||||
Reference in New Issue
Block a user