PirateBoxScripts_Webserver/piratebox/piratebox/bin/flush_dnsmasq.sh
2012-07-15 19:00:41 +02:00

11 lines
253 B
Bash
Executable file

#!/bin/sh
# by Matthias Strubel , 2012
#
# Sends a SIGHUB to dnsmasq to reread its hosts files
# Needed for mesh feature. Will enable easy dns-service for this.
PIDFILE_DNSMASQ=/var/run/piratebox_dnsmasq.pid
kill -1 `cat $PIDFILE_DNSMASQ`