]> git.ipfire.org Git - ipfire-2.x.git/blame - src/initscripts/networking/red.up/05-update-dns-forwarders
Suricata: Start service on red.up event if requested
[ipfire-2.x.git] / src / initscripts / networking / red.up / 05-update-dns-forwarders
CommitLineData
1b4f2493
MT
1#!/bin/bash
2
46d8d50f
MT
3# If network has not fully been brought up here, we start unbound
4# so that all following scripts can rely on DNS resolution
5
a48a2034
AF
6pidof unbound > /dev/null
7if [ "${?}" = "0" ]; then
8 # unbound is run so update the forwarders
9 /etc/init.d/unbound update-forwarders
10else
11 # Start unbound if it is not running, yet
12 /etc/init.d/unbound start
46d8d50f 13fi