Skip to content

Commit

Permalink
Adding systemd service file
Browse files Browse the repository at this point in the history
  • Loading branch information
edgan committed Nov 27, 2024
1 parent 29103e2 commit 576cfb8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/METRICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ default value is `0.0`. When it detects an outage it returns `1.0`.
If you run `att-fiber-gateway-outage-detection` on more than one system you can
see if any of them saw an outage.

### Systemd
[Here](systemd/att-fiber-gateway-outage-detection.service) is a tested systemd service file
for running this as a daemon on a Linux system as root.

### Dashboards
In [datadog/dashboards/](datadog/dashboards) there are `json` files broken out by `model`, and
`multi` and `single`.
Expand Down
15 changes: 15 additions & 0 deletions systemd/att-fiber-gateway-outage-detection.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=A service to detect Internet outages of a AT&T Fiber gateway.
Documentation=https://github.com/edgan/att-fiber-gateway-outage-detection/blob/main/README.md
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/bin/att-fiber-gateway-outage-detection -datadog

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

0 comments on commit 576cfb8

Please sign in to comment.