dawn: respawn dawn in case of crash
authorNick Hainke <redacted>
Wed, 20 Oct 2021 08:26:54 +0000 (10:26 +0200)
committerNick Hainke <redacted>
Thu, 21 Oct 2021 09:25:10 +0000 (11:25 +0200)
Some users report that DAWN sometimes crashes after a while. Mostly
this happens after the new update has been rolled out.

Since I would not like to go back to the older version, I add as
a workaround for now that DAWN automatically respawned.

Workaround for:
https://github.com/berlin-open-wireless-lab/DAWN/issues/151

Signed-off-by: Nick Hainke <redacted>
net/dawn/files/dawn.init

index 4171b3c6b8b51b566c8ba9b8dbaf6f04ff2aaf19..fb41bacb831c4ea4e4bd199e154109d43aa12227 100755 (executable)
@@ -52,6 +52,9 @@ start_service()
        echo "Starting Service..."
        procd_open_instance
        procd_set_param command $PROG
+
+       procd_set_param respawn 3600 15 0
+
        procd_set_param stdout 0 # here it is possible to remove the debug output...
        procd_set_param stderr 1
        if [ ${_network_option} -eq 2 ]; then
git clone https://git.99rst.org/PROJECT