Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
800a0157
Commit
800a0157
authored
Jun 27, 2019
by
Micha Müller
Browse files
Add systemd service for pusher
parent
6dec7770
Changes
5
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/Makefile
View file @
800a0157
...
...
@@ -63,7 +63,7 @@ $(OBJS) : %.o : %.cpp
install_lib
:
$(PLUGIN_LIBS)
install
$^
$(DCDBDEPLOYPATH)
/lib/
install_conf
:
$(foreach p
,
global
$(PLUGINS)
,
config/$(p).conf)
install_conf
:
$(foreach p
,
dcdbpusher
$(PLUGINS)
,
config/$(p).conf)
install
-m
644
$^
$(DCDBDEPLOYPATH)
/etc/
install
:
$(TARGET) install_lib
...
...
dcdbpusher/config/dcdbpusher.conf
View file @
800a0157
global
{
mqttBroker
localhost
:
1883
mqttBroker
127
.
0
.
0
.
1
:
1883
mqttprefix
/
test
threads
24
maxMsgNum
100
...
...
@@ -29,32 +29,17 @@ restAPI {
}
plugins
{
plugin
snmp
{
path
./
config
}
plugin
sysfs
{
path
./
config
}
plugin
ipmi
{
path
./
config
}
plugin
perfevent
{
path
./
config
}
plugin
p
du
{
plugin
p
rocfs
{
path
./
config
}
plugin
bacnet
{
plugin
sysfs
{
path
./
config
}
...
...
scripts/Makefile
View file @
800a0157
...
...
@@ -15,6 +15,7 @@ install:
@mkdir
-p
$(DCDBDEPLOYPATH)/etc/systemd/system
@sed
-e
's|%DCDB_PREFIX%|'
$(DCDBDEPLOYPATH)
'|g'
cassandra.service
>
$(DCDBDEPLOYPATH)/etc/systemd/system/cassandra.service
@sed
-e
's|%DCDB_PREFIX%|'
$(DCDBDEPLOYPATH)
'|g'
collectagent.service
>
$(DCDBDEPLOYPATH)/etc/systemd/system/collectagent.service
@sed
-e
's|%DCDB_PREFIX%|'
$(DCDBDEPLOYPATH)
'|g'
pusher.service
>
$(DCDBDEPLOYPATH)/etc/systemd/system/pusher.service
@echo
"install dcdbplot"
@install
-m
755
dcdbplot
$(DCDBDEPLOYPATH)/bin/dcdbplot
...
...
scripts/collectagent.service
View file @
800a0157
...
...
@@ -4,7 +4,7 @@ After=cassandra.service
[Service]
Environment
=
LD_LIBRARY_PATH=%DCDB_PREFIX%/lib
ExecStart
=
%DCDB_PREFIX%/bin/collectagent
-m %H -c %H
%DCDB_PREFIX%/etc
ExecStart
=
%DCDB_PREFIX%/bin/collectagent %DCDB_PREFIX%/etc
StandardOutput
=
journal
StandardError
=
journal
Restart
=
always
...
...
scripts/pusher.service
0 → 100644
View file @
800a0157
[Unit]
Description
=
DCDB Pusher
After
=
collectagent.service
[Service]
Environment
=
LD_LIBRARY_PATH=%DCDB_PREFIX%/lib
ExecStart
=
%DCDB_PREFIX%/bin/dcdbpusher %DCDB_PREFIX%/etc
StandardOutput
=
journal
StandardError
=
journal
Restart
=
always
[Install]
WantedBy
=
multi-user.target
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment