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
b47ff7b8
Commit
b47ff7b8
authored
2 years ago
by
Amin Ben Romdhane
Browse files
Options
Downloads
Patches
Plain Diff
bbfdm: 1.0.19
parent
e5704ad7
Branches
Branches containing commit
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
-3
2 additions, 3 deletions
bbfdm/Makefile
bbfdm/files/etc/config/bbfdm
+0
-1
0 additions, 1 deletion
bbfdm/files/etc/config/bbfdm
bbfdm/files/etc/init.d/bbfdmd
+15
-25
15 additions, 25 deletions
bbfdm/files/etc/init.d/bbfdmd
with
17 additions
and
29 deletions
bbfdm/Makefile
+
2
−
3
View file @
b47ff7b8
...
...
@@ -5,11 +5,11 @@
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
bbfdm
PKG_VERSION
:=
1.0.1
8
PKG_VERSION
:=
1.0.1
9
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://dev.iopsys.eu/bbf/bbfdm.git
PKG_SOURCE_VERSION
:=
adaa95333651230428928461198594e319a8f
f29
PKG_SOURCE_VERSION
:=
6d8b66092adf184f6e4f1f85a91dcc4e1f8
f29
e5
PKG_SOURCE
:=
$(
PKG_NAME
)
-
$(
PKG_VERSION
)
-
$(
PKG_SOURCE_VERSION
)
.tar.gz
PKG_MIRROR_HASH
:=
skip
...
...
@@ -166,7 +166,6 @@ CMAKE_OPTIONS += -DWITH_MBEDTLS=ON
endif
ifeq
($(CONFIG_PACKAGE_bbfdmd),y)
CMAKE_OPTIONS
+=
-DBBFDMD_ENABLED
=
ON
CMAKE_OPTIONS
+=
\
-DBBFDMD_MAX_MSG_LEN
:Integer
=
10485760
endif
...
...
This diff is collapsed.
Click to expand it.
bbfdm/files/etc/config/bbfdm
+
0
−
1
View file @
b47ff7b8
...
...
@@ -4,5 +4,4 @@ config bbfdmd 'bbfdmd'
option loglevel '1'
option refresh_time '10'
option transaction_timeout '10'
option enable_plugins '1'
This diff is collapsed.
Click to expand it.
bbfdm/files/etc/init.d/bbfdmd
+
15
−
25
View file @
b47ff7b8
...
...
@@ -7,7 +7,6 @@ USE_PROCD=1
PROG
=
/usr/sbin/bbfdmd
BBFDM_JSON_INPUT
=
"/etc/bbfdm/input.json"
TMP_JSON_INPUT
=
"/tmp/bbfdm_input.json"
log
()
{
echo
"
${
@
}
"
|logger
-t
bbfdmd.init
-p
info
...
...
@@ -38,50 +37,41 @@ configure_bbfdmd()
[
"
${
enabled
}
"
-eq
0
]
&&
return
0
procd_set_param
command
${
PROG
}
if
[
"
${
debug
}
"
-eq
1
]
;
then
procd_set_param stdout 1
procd_set_param stderr 1
fi
if
[
-f
"
${
sock
}
"
]
;
then
procd_append_param
command
-s
"
${
sock
}
"
fi
[
!
-f
"
${
BBFDM_JSON_INPUT
}
"
]
&&
return
0
cp
-f
${
BBFDM_JSON_INPUT
}
${
TMP_JSON_INPUT
}
2>/dev/null
if
[
-n
"
${
loglevel
}
"
]
;
then
echo
"
$(
jq
--arg
res
${
loglevel
}
'.daemon.config += {"loglevel": $res}'
${
TMP
_JSON_INPUT
}
)
"
>
${
TMP
_JSON_INPUT
}
echo
"
$(
jq
--arg
res
${
loglevel
}
'.daemon.config += {"loglevel": $res}'
${
BBFDM
_JSON_INPUT
}
)
"
>
${
BBFDM
_JSON_INPUT
}
fi
if
[
-n
"
${
refresh_time
}
"
]
;
then
echo
"
$(
jq
--arg
res
${
refresh_time
}
'.daemon.config += {"refresh_time": $res}'
${
TMP
_JSON_INPUT
}
)
"
>
${
TMP
_JSON_INPUT
}
echo
"
$(
jq
--arg
res
${
refresh_time
}
'.daemon.config += {"refresh_time": $res}'
${
BBFDM
_JSON_INPUT
}
)
"
>
${
BBFDM
_JSON_INPUT
}
fi
if
[
-n
"
${
transaction_timeout
}
"
]
;
then
echo
"
$(
jq
--arg
res
${
transaction_timeout
}
'.daemon.config += {"transaction_timeout": $res}'
${
TMP
_JSON_INPUT
}
)
"
>
${
TMP
_JSON_INPUT
}
echo
"
$(
jq
--arg
res
${
transaction_timeout
}
'.daemon.config += {"transaction_timeout": $res}'
${
BBFDM
_JSON_INPUT
}
)
"
>
${
BBFDM
_JSON_INPUT
}
fi
if
[
-n
"
${
subprocess_level
}
"
]
;
then
echo
"
$(
jq
--arg
res
${
subprocess_level
}
'.daemon.config += {"subprocess_level": $res}'
${
TMP
_JSON_INPUT
}
)
"
>
${
TMP
_JSON_INPUT
}
echo
"
$(
jq
--arg
res
${
subprocess_level
}
'.daemon.config += {"subprocess_level": $res}'
${
BBFDM
_JSON_INPUT
}
)
"
>
${
BBFDM
_JSON_INPUT
}
fi
if
[
-n
"
${
enable_plugins
}
"
]
;
then
echo
"
$(
jq
--arg
res
${
enable_plugins
}
'.daemon.config += {"enable_plugins": $res}'
${
TMP_JSON_INPUT
}
)
"
>
${
TMP_JSON_INPUT
}
procd_set_param
command
${
PROG
}
if
[
"
${
debug
}
"
-eq
1
]
;
then
procd_set_param stdout 1
procd_set_param stderr 1
fi
procd_append_param
command
-I
"
${
TMP_JSON_INPUT
}
"
if
[
-f
"
${
sock
}
"
]
;
then
procd_append_param
command
-s
"
${
sock
}
"
fi
}
start_service
()
{
procd_open_instance bbf
start_service
()
{
procd_open_instance
"
bbf
dm"
configure_bbfdmd
procd_set_param respawn
procd_close_instance
procd_close_instance
"bbfdm"
}
service_triggers
()
...
...
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