Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iopsys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
iopsys
Commits
3ec6b54d
Commit
3ec6b54d
authored
10 months ago
by
Vivek Dutta
Browse files
Options
Downloads
Patches
Plain Diff
bbfdm: delay start datamodel services
datamodel services moved down in startup sequence to avoid race conditions
parent
6a34e2da
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bbfdm/Makefile
+2
-2
2 additions, 2 deletions
bbfdm/Makefile
bbfdm/files/etc/init.d/bbfdm.services
+8
-4
8 additions, 4 deletions
bbfdm/files/etc/init.d/bbfdm.services
bbfdm/files/etc/init.d/bbfdmd
+1
-3
1 addition, 3 deletions
bbfdm/files/etc/init.d/bbfdmd
with
11 additions
and
9 deletions
bbfdm/Makefile
+
2
−
2
View file @
3ec6b54d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
include
$(TOPDIR)/rules.mk
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
bbfdm
PKG_NAME
:=
bbfdm
PKG_VERSION
:=
1.12.
0
PKG_VERSION
:=
1.12.
1
USE_LOCAL
:=
0
USE_LOCAL
:=
0
ifneq
($(USE_LOCAL),1)
ifneq
($(USE_LOCAL),1)
...
@@ -53,7 +53,7 @@ define Package/dm-service
...
@@ -53,7 +53,7 @@ define Package/dm-service
CATEGORY
:=
Utilities
CATEGORY
:=
Utilities
SUBMENU
:=
TRx69
SUBMENU
:=
TRx69
TITLE
:=
Datamodel ubus backend to expose micro-service tree
TITLE
:=
Datamodel ubus backend to expose micro-service tree
DEPENDS
:=
+libuci +libubox +libubus +libblobmsg-json +libjson-c +libbbfdm-api +libbbfdm-ubus
+jq
+bbf_configmngr
DEPENDS
:=
+libuci +libubox +libubus +libblobmsg-json +libjson-c +libbbfdm-api +libbbfdm-ubus +bbf_configmngr
endef
endef
define
Package/bbf_configmngr
define
Package/bbf_configmngr
...
...
This diff is collapsed.
Click to expand it.
bbfdm/files/etc/init.d/bbfdm.services
+
8
−
4
View file @
3ec6b54d
#!/bin/sh /etc/rc.common
#!/bin/sh /etc/rc.common
START
=
40
START
=
85
STOP
=
8
STOP
=
8
USE_PROCD
=
1
USE_PROCD
=
1
...
@@ -33,13 +33,17 @@ _add_microservice()
...
@@ -33,13 +33,17 @@ _add_microservice()
name
=
"
$(
basename
${
path
}
)
"
name
=
"
$(
basename
${
path
}
)
"
name
=
"
${
name
//.json
}
"
name
=
"
${
name
//.json
}
"
enable
=
"
$(
jq
-r
'.daemon.enable//1'
${
path
}
)
"
json_load_file
"
${
path
}
"
json_select daemon
json_get_var
enable enable
1
if
[
"
${
enable
}
"
-eq
"0"
]
;
then
if
[
"
${
enable
}
"
-eq
"0"
]
;
then
log
"datamodel micro-service
${
name
}
not enabled"
log
"datamodel micro-service
${
name
}
not enabled"
return
0
return
0
fi
fi
loglevel
=
"
$(
jq
-r
'.daemon.config.loglevel//3'
${
path
}
)
"
json_select config
json_get_var loglevel loglevel 3
procd_open_instance
"
${
name
}
"
procd_open_instance
"
${
name
}
"
...
@@ -59,7 +63,7 @@ _add_microservice()
...
@@ -59,7 +63,7 @@ _add_microservice()
configure_bbfdm_micro_services
()
configure_bbfdm_micro_services
()
{
{
local enable
enable_core
enable_respawn
local enable
enable_core
config_load bbfdm
config_load bbfdm
validate_bbfdm_micro_service_section
||
{
validate_bbfdm_micro_service_section
||
{
...
...
This diff is collapsed.
Click to expand it.
bbfdm/files/etc/init.d/bbfdmd
+
1
−
3
View file @
3ec6b54d
#!/bin/sh /etc/rc.common
#!/bin/sh /etc/rc.common
START
=
65
START
=
90
STOP
=
10
STOP
=
10
USE_PROCD
=
1
USE_PROCD
=
1
...
@@ -44,8 +44,6 @@ configure_bbfdmd()
...
@@ -44,8 +44,6 @@ configure_bbfdmd()
start_service
()
start_service
()
{
{
mkdir
-p
${
BBFDM_TEMP_DIR
}
procd_open_instance
"bbfdm"
procd_open_instance
"bbfdm"
configure_bbfdmd
configure_bbfdmd
procd_set_param respawn
procd_set_param respawn
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment