Skip to content

Commit

Permalink
install babeld-monitor.timer . related to sudomesh/bugs#24
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpoelen committed Apr 1, 2018
1 parent 07e82a8 commit 0dc92f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 3 additions & 2 deletions create_exitnode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ sed -i '/address/a \ \ dns-nameservers 8.8.8.8' /etc/network/interfaces.d/50-c
systemctl enable sudomesh-gateway
systemctl enable tunneldigger
systemctl enable babeld
systemctl enable babeld-monitor

service sudomesh-gateway start
service tunneldigger start
service babeld start
service babeld-monitor start

systemctl start babeld-monitor.timer
systemctl enable babeld-monitor.timer

reboot now
9 changes: 4 additions & 5 deletions src/etc/systemd/system/babeld-monitor.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
Description=babeld-monitor
After=network.target auditd.service

[Timer]
OnCalendar=*:0/10

[Service]
Type=simple
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/opt/babeld-monitor/babeld-monitor.sh

[Install]
WantedBy=timers.target

WantedBy=multi-user.target
9 changes: 9 additions & 0 deletions src/etc/systemd/system/babeld-monitor.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=babeld-monitor timer

[Timer]
OnCalendar=*:0/10

[Install]
WantedBy=timers.target

0 comments on commit 0dc92f1

Please sign in to comment.