Validators for load tests, and load test scripts.
This commit is contained in:
parent
2cec1f7836
commit
482da790ea
18 changed files with 2222 additions and 11 deletions
20
scripts/install_capa.sh
Executable file
20
scripts/install_capa.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
g++ -lmist -Wall -o capa_service capa_service.cpp
|
||||
if [ $? -eq 0 ]; then
|
||||
bestand=/etc/systemd/system/capa_service.service
|
||||
echo "[Unit]" > $bestand
|
||||
echo "Description=capa_service" >> $bestand
|
||||
echo "After=networkmanager.service" >> $bestand
|
||||
echo "" >> $bestand
|
||||
echo "[Service]" >> $bestand
|
||||
echo "Type=simple" >> $bestand
|
||||
echo "User=$USER" >> $bestand
|
||||
echo "ExecStart="`pwd`"/capa_service" `pwd`/log.csv >> $bestand
|
||||
echo "Restart=always" >> $bestand
|
||||
echo "RestartSec=5" >> $bestand
|
||||
echo "" >> $bestand
|
||||
echo "[Install]" >> $bestand
|
||||
echo "WantedBy=multi-user.target" >> $bestand
|
||||
|
||||
systemctl daemon-reload
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue