Commit d9283b7d authored by Michael Ott's avatar Michael Ott
Browse files

Add systemd service descriptions for Cassandra and CollectAgent

parent 8bc79ca6
...@@ -10,6 +10,11 @@ install: ...@@ -10,6 +10,11 @@ install:
mkdir -p $(DCDBDEPLOYPATH)/etc/init.d/ mkdir -p $(DCDBDEPLOYPATH)/etc/init.d/
sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' dcdb_init > $(DCDBDEPLOYPATH)/etc/init.d/dcdb sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' dcdb_init > $(DCDBDEPLOYPATH)/etc/init.d/dcdb
chmod +x $(DCDBDEPLOYPATH)/etc/init.d/dcdb chmod +x $(DCDBDEPLOYPATH)/etc/init.d/dcdb
# Install systemd scripts
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
# Install dcdbplot # Install dcdbplot
install -m 755 dcdbplot $(DCDBDEPLOYPATH)/bin/dcdbplot install -m 755 dcdbplot $(DCDBDEPLOYPATH)/bin/dcdbplot
......
[Unit]
Description=Cassandra
After=network.target
[Service]
PIDFile=%DCDB_PREFIX%/cassandra.pid
ExecStart=%DCDB_PREFIX%/cassandra/bin/cassandra -p %DCDB_PREFIX%/cassandra.pid
StandardOutput=journal
StandardError=journal
Restart=always
[Install]
WantedBy=multi-user.target
[Unit]
Description=DCDB CollectAgent
After=cassandra.service
[Service]
Environment=LD_LIBRARY_PATH=%DCDB_PREFIX%/lib
ExecStart=%DCDB_PREFIX%/bin/collectagent -m 0.0.0.0 -r 0.0.0.0 -c %H
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