Skip to content

Commit a14fea4

Browse files
committed
Add systemd service and timer templates
1 parent cf7c945 commit a14fea4

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=wirerrd collector
3+
4+
[Service]
5+
Type=simple
6+
User=wirerrd
7+
WorkingDirectory=/path/to/wirerrd
8+
ExecStart=/path/to/wirerrd/wirerrd collect -i interface -o /path/to/rrd -f contrib/filters/bcast-stats.rules
9+
10+
[Install]
11+
WantedBy=multi-user.target
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=wirerrd exporter
3+
4+
[Service]
5+
Type=oneshot
6+
User=wirerrd
7+
Group=wirerrd
8+
WorkingDirectory=/path/to/wirerrd
9+
ExecStart=/path/to/wirerrd/wirerrd export -i /path/to/rrd -o /path/to/public_html_symlink
10+
11+
[Install]
12+
WantedBy=multi-user.target
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=wirerrd export timer
3+
4+
[Timer]
5+
Unit=wirerrd-export
6+
OnBootSec=5m
7+
OnUnitActiveSec=5m
8+
9+
[Install]
10+
WantedBy=timers.target

0 commit comments

Comments
 (0)