Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
sleep 1
$0 start
;;
+ reload)
+ # Update configuration files
+ write_tuning_conf
+ write_forward_conf
+
+ # Update Safe Search rules if the system is online.
+ if [ -e "/var/ipfire/red/active" ]; then
+ update_safe_search
+ fi
+
+ # Update hosts.
+ update_hosts
+
+ # Call unbound-control and perform the reload
+ /usr/sbin/unbound-control -q reload
+ ;;
status)
statusproc /usr/sbin/unbound
;;
*)
- echo "Usage: $0 {start|stop|restart|status|resolve|update-forwarders|remove-forwarders|update-safe-search}"
+ echo "Usage: $0 {start|stop|restart|reload|status|resolve|update-forwarders|remove-forwarders|update-safe-search}"
exit 1
;;
esac