Fix snap configuration for netstat daemon (#1190)

- Also increased the frequency at which the stats are sent
- Fixed file permissions for snapcraft.yaml
This commit is contained in:
Pankaj Garg 2018-09-11 14:49:05 -07:00 committed by GitHub
parent af3eb5a16c
commit 5d19b799af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ while true; do
echo "$report"
./metrics-write-datapoint.sh "net-stats,hostname=$HOSTNAME $report"
sleep 60
sleep 1
done
exit 1

View File

@ -5,6 +5,7 @@ snapctl stop --disable solana.daemon-drone
snapctl stop --disable solana.daemon-leader
snapctl stop --disable solana.daemon-validator
snapctl stop --disable solana.daemon-oom-monitor
snapctl stop --disable solana.daemon-net-stats
mode="$(snapctl get mode)"
if [[ -z "$mode" ]]; then

0
snap/snapcraft.yaml Executable file → Normal file
View File