17 Commits

Author SHA1 Message Date
lordwelch
4e1975ff77 Exit on TERM 2021-01-09 15:20:47 -08:00
lordwelch
a9b2d89f29 Send USR1 on address change 2021-01-09 15:20:47 -08:00
lordwelch
a8944ecb1a Propagate TERM signal to services 2021-01-09 15:16:47 -08:00
andig
067330db55
Honor https-port when redirecting (#79) 2021-01-08 09:10:39 +01:00
andig
5fc5d0ab5d
Load runtime port configuration from http(s)-port file (#77) 2021-01-06 22:27:29 +01:00
Matt Layher
caded46676
gokrazy: import and use github.com/mdlayher/watchdog (#72)
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-10-06 17:11:15 +02:00
Janis Streib
17bec15432
Added proof of concept TLS support (#7) (#53)
If there is a certificate and key in /etc/ssl/gokrazy-web.{pem,key.pem},
the webinterface will serve and redirect to https.
2020-05-31 21:58:03 +02:00
Michael Stapelberg
727ba0f371 serial console: also try /tmp/serial-busybox/ash
This path is provided by the github.com/gokrazy/serial-busybox package.

related to https://github.com/gokrazy/gokrazy/issues/54
2020-05-21 23:12:15 +02:00
Michael Stapelberg
6beb2e16aa implement remote syslog as a platform feature
To configure, run the following command in an interactive shell (e.g. via
breakglass, or when mounting the permanent partition of the SD card on the
host):

  mkdir /perm/remote_syslog
  echo 10.0.0.76:514 > /perm/remote_syslog/target

I recommend using a (static) IP address for increased reliability, so that
remote syslog works even when DNS does not.

fixes #50
2019-12-10 22:15:42 +01:00
Michael Stapelberg
107f6fe098 start /perm/sh if it exists upon any byte on the serial console
This allows debugging when the network is down.
2019-02-19 07:46:07 +01:00
Michael Stapelberg
63803ab95e update listeners when netlink reports an address change
related to issue #21
2018-11-01 18:41:57 +01:00
Michael Stapelberg
4a126f13af init+dhcp changes for Squashfs root file systems
We can do away with a bunch of hacks now, but we’ll keep them around for a
little while to make updates easier (i.e. to boot with old and new gokr-packer
versions, just in case people don’t update both at the same time).
2018-06-21 23:21:51 +02:00
Michael Stapelberg
238bbfa55e init: update listeners when pressing <ENTER> on the serial console
This is useful when the network doesn’t come up correctly: you can connect a
network cable between your computer and the gokrazy machine, press <ENTER> on
the serial console and connect to gokrazy via its IPv6 link-local address (to
find the address, use ping6 ff02::1%eth0).
2018-06-12 22:22:47 +02:00
Tobias Klauser
ffa8ce0e42 use WDIOC_KEEPALIVE from golang.org/x/sys/unix (#35)
...now that it was added there.
2017-10-28 12:55:27 +02:00
Michael Stapelberg
2e60d5b8c8 ping hardware watchdog every 1s
In case gokrazy gets stuck for whichever reason, the hardware watchdog will
reset the Raspberry Pi 3.
2017-10-21 20:05:26 +02:00
Michael Stapelberg
3999a60a05 WaitForClock: give up after 1 year, not 1 minute
related to issue #21
2017-03-25 20:47:47 +01:00
Michael Stapelberg
38af7fd18d Initial commit 2017-03-04 11:22:48 +01:00