Commit 800a0157 authored by Micha Müller's avatar Micha Müller
Browse files

Add systemd service for pusher

parent 6dec7770
......@@ -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
......
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 pdu {
plugin procfs {
path ./
config
}
plugin bacnet {
plugin sysfs {
path ./
config
}
......
......@@ -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
......
......@@ -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
......
[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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment