Compare commits
4 Commits
main
...
new-webint
Author | SHA1 | Date | |
---|---|---|---|
8d9c3d2f9b | |||
148d961d31 | |||
2835ae007d | |||
b8f4d4f1c5 |
|
@ -1,6 +1,8 @@
|
||||||
PYTHON_DOOR_ADMIN_VERSION = 8e868f16747fc56daa29a0cdcd77d9b7fff10711
|
#PYTHON_DOOR_ADMIN_VERSION = blueprint_refactoring
|
||||||
PYTHON_DOOR_ADMIN_SOURCE = $(PYTHON_DOOR_ADMIN_VERSION).tar.gz
|
#PYTHON_DOOR_ADMIN_VERSION = master
|
||||||
PYTHON_DOOR_ADMIN_SITE = https://git.imaginaerraum.de/Telos4/DoorAdmin/archive
|
PYTHON_DOOR_ADMIN_VERSION = a13e7b3e294d0300ab75da2042cf93ea840eb2e2
|
||||||
|
PYTHON_DOOR_ADMIN_SITE = https://git.imaginaerraum.de/Telos4/DoorAdmin
|
||||||
|
PYTHON_DOOR_ADMIN_SITE_METHOD = git
|
||||||
PYTHON_DOOR_ADMIN_LICENSE = GPL-3.0
|
PYTHON_DOOR_ADMIN_LICENSE = GPL-3.0
|
||||||
PYTHON_DOOR_ADMIN_LICENSE_FILES = LICENSE
|
PYTHON_DOOR_ADMIN_LICENSE_FILES = LICENSE
|
||||||
PYTHON_DOOR_ADMIN_SETUP_TYPE = setuptools
|
PYTHON_DOOR_ADMIN_SETUP_TYPE = setuptools
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit f14ba5c1a49f9e67942ecc745eb5be068da9f681
|
Subproject commit d6d9ed7400ae2761cd08ce8e0d534585fee38e01
|
2
config
2
config
|
@ -4120,7 +4120,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y
|
||||||
BR2_TARGET_ROOTFS_EXT2_GEN=4
|
BR2_TARGET_ROOTFS_EXT2_GEN=4
|
||||||
BR2_TARGET_ROOTFS_EXT2_REV=1
|
BR2_TARGET_ROOTFS_EXT2_REV=1
|
||||||
BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
|
BR2_TARGET_ROOTFS_EXT2_LABEL="rootfs"
|
||||||
BR2_TARGET_ROOTFS_EXT2_SIZE="80M"
|
BR2_TARGET_ROOTFS_EXT2_SIZE="100M"
|
||||||
BR2_TARGET_ROOTFS_EXT2_INODES=0
|
BR2_TARGET_ROOTFS_EXT2_INODES=0
|
||||||
BR2_TARGET_ROOTFS_EXT2_RESBLKS=5
|
BR2_TARGET_ROOTFS_EXT2_RESBLKS=5
|
||||||
BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS="-O ^64bit"
|
BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS="-O ^64bit"
|
||||||
|
|
13
root_overlay/bin/healthcheck.sh
Executable file
13
root_overlay/bin/healthcheck.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# This script acts as a dead-man-switch for the door pi.
|
||||||
|
# It sends a ping to healthchecks.io in regular intervals.
|
||||||
|
# When a ping is missed (e.g. because the pi crashes) healtchecks
|
||||||
|
# is configured to send a notification that the pi is down.
|
||||||
|
LOGFILE=/var/log/healthcheck.log
|
||||||
|
URL=http://hc-ping.com/7cfd6716-ac74-420a-b322-ef8d5746e0fe
|
||||||
|
while true; do
|
||||||
|
echo -n "`date +"[%Y-%m-%d %H:%M:%S]"` " >> $LOGFILE
|
||||||
|
wget -q -O - $URL >> $LOGFILE
|
||||||
|
echo "" >> $LOGFILE
|
||||||
|
sleep 15m
|
||||||
|
done
|
|
@ -3,5 +3,6 @@ while true; do
|
||||||
start-stop-daemon -S -m -p /tmp/poll_desfire.pid -x /bin/poll_desfire -b -- /root/key /tmp/nfc_fifo
|
start-stop-daemon -S -m -p /tmp/poll_desfire.pid -x /bin/poll_desfire -b -- /root/key /tmp/nfc_fifo
|
||||||
start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /bin/door.py
|
start-stop-daemon -v -p /tmp/fcpy.pid -S -b -m -v -x /usr/bin/python -- /bin/door.py
|
||||||
start-stop-daemon -v -p /tmp/webiface.pid -S -b -m -v -x /usr/bin/python -- /usr/bin/launch_webadmin
|
start-stop-daemon -v -p /tmp/webiface.pid -S -b -m -v -x /usr/bin/python -- /usr/bin/launch_webadmin
|
||||||
|
start-stop-daemon -v -p /tmp/healthchecks.pid -S -b -m -v -x /bin/sh -- /bin/healthcheck.sh
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user