From 003d76cc9a1709d495fbda712d42f9e98c5a4980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Guzm=C3=A1n?= Date: Mon, 20 Feb 2017 01:44:28 -0300 Subject: [PATCH] Prevents openwrt init.d script, to kill itself killall kills all, including the script. Deletes the pid file. --- openWRT/openwrt.init.script | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openWRT/openwrt.init.script b/openWRT/openwrt.init.script index dc25ef7..63ace20 100644 --- a/openWRT/openwrt.init.script +++ b/openWRT/openwrt.init.script @@ -6,7 +6,8 @@ STOP=80 start() { echo "Stopping previous oor process ..." - killall oor &> /dev/null + killall /usr/sbin/oor &> /dev/null + rm /var/run/oor.pid echo "Starting Open Overlay Router ..." /usr/sbin/oor -D } @@ -14,4 +15,4 @@ start() { stop() { echo "Stopping Open Overlay Router ..." killall oor -} \ No newline at end of file +}