Sends a desktop notification every time orbit fleetdm performs a distributed query on your host.
notify-send(on Ubuntu, this islibnotify-bin)
This script inspect orbit log file which isn't write by default. Thus we need to enable it this way:
sudo mkdir -p /etc/systemd/system/orbit.service.d
sudo bash -c 'cat <<EOF >/etc/systemd/system/orbit.service.d/override.conf
[Service]
Environment=ORBIT_DEBUG=true
Environment=ORBIT_LOG_FILE=/var/log/orbit/orbit.log
EOF'
sudo systemctl daemon-reload
sudo systemctl restart orbitsudo make allor
- Copy
orbit-notifier.shto/usr/local/bin/orbit-notifier. - Copy
orbit-notifier.serviceto/etc/systemd/user/orbit-notifier.service. - Run
systemctl --user enable --now orbit-notifier.
Due to debug output, the /var/log/orbit/orbit.log file can grows to several megabytes after few months. Consider to run truncate -s 50M /var/log/orbit/orbit.log from time to time.
MIT