Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Last active January 27, 2026 06:51
Show Gist options
  • Select an option

  • Save muhamad-ridwant-tech/7da360ba569e69b0b188f1e53f06336f to your computer and use it in GitHub Desktop.

Select an option

Save muhamad-ridwant-tech/7da360ba569e69b0b188f1e53f06336f to your computer and use it in GitHub Desktop.
Blackbox-Exporter systemd service file ( /etc/systemd/system/blackbox.service )
[Unit]
Description=Blackbox-Exporter
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/blackbox_exporter \
--config.file /etc/blacbkox-exporter/blackbox.yml
Restart=on-failure
User=root ## Be careful with root users
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment