olsr other stuffs

This commit is contained in:
Maciej Krüger 2022-05-28 12:31:47 +02:00
parent ad88928bdf
commit 0284bf4014
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From e5c0192003d6a0afee97abb9a947bc0944883091 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= <mkg20001@gmail.com>
Date: Sun, 10 Apr 2022 01:58:41 +0200
Subject: [PATCH] oonf-olsrd2: add support to check if service is running
---
oonf-olsrd2/files/olsrd2.init | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/oonf-olsrd2/files/olsrd2.init b/oonf-olsrd2/files/olsrd2.init
index debae98..b6c1e9a 100755
--- a/oonf-olsrd2/files/olsrd2.init
+++ b/oonf-olsrd2/files/olsrd2.init
@@ -3,4 +3,11 @@
START=82
DAEMON='olsrd2'
+running() {
+ test -e "/tmp/run/olsrd2.pid" && test -e "/proc/$(cat "/tmp/run/olsrd2.pid")" && return 0
+ return 1
+}
+
+extra_command "running" "Check if service is running"
+
. /lib/functions/oonf_init.sh
--
2.35.1

View File

@ -59,6 +59,8 @@ config('KERNEL_SECCOMP', false)
-- use try_config, so enabling the package is still possible -- use try_config, so enabling the package is still possible
try_config('PACKAGE_kmod-mt7915e', false) try_config('PACKAGE_kmod-mt7915e', false)
config('OONF_GENERIC_HTTP', true)
config('COLLECT_KERNEL_DEBUG', true) config('COLLECT_KERNEL_DEBUG', true)
config('TARGET_MULTI_PROFILE', true) config('TARGET_MULTI_PROFILE', true)