+
+ # this is just fixing a screwed up state we shouldnt get into normally.
+ if [[ -e /etc/init.d/prometheus-node-exporter ]]; then
+ sysd_reload=true
+ rm -f /etc/init.d/prometheus-node-exporter
+ fi
+
+
+ #why have
+ # this logic to handle both cases: The only differences of the
+ # packaged version in t11 is that it creates /var/log/prometheus and a
+ # logrotate, but nothing is logged there. And it depends on
+ # prometheus-node-exporter-collectors, which is useful, but that
+ # package itself depends on prometheus-node-exporter. We have no
+ # reason to install prometheus-node-exporter except that
+ # dependency. We could fix that, but this is easier. So, we keep
+ # handling both cases in case we fix that or maybe run a different
+ # distro that doesn't have it.