Skip to content

Instantly share code, notes, and snippets.

@adsb-related-code
Created April 19, 2021 23:46

Revisions

  1. adsb-related-code created this gist Apr 19, 2021.
    21 changes: 21 additions & 0 deletions zero-w-tuner.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/bin/bash
    set -e
    echo 'Disabling services to save the Zero ...'
    echo 'Prom services ...'
    sudo systemctl disable --now prometheus-dump1090-exporter.service
    sudo systemctl disable --now prometheus-node-exporter.service
    sudo systemctl disable --now prometheus-node-exporter-apt.timer
    sudo systemctl disable --now prometheus-node-exporter-smartmon.timer
    sudo systemctl disable --now prometheus-node-exporter-ipmitool-sensor.timer
    sudo systemctl disable --now prometheus.service
    sudo systemctl disable --now prometheus-node-exporter-mellanox-hca-temp.timer
    sudo systemctl disable --now adsbx-temp.service
    echo 'Grafana services ...'
    sudo systemctl disable --now grafana-server.service
    echo 'Graphs1090 services ...'
    sudo systemctl disable --now graphs1090.service
    echo 'Tar1090 archive services ...'
    sudo systemctl disable --now collectd.service
    sudo systemctl disable --now tar1090-978.service
    sudo systemctl disable --now tar1090.service
    echo 'Zero for that single CPU complete'