#!/bin/bash # # priority: 850 # # Start local DNS server to provide minimal DNS forward resolution for # ourselves and our nodes. # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # # $Id: dns,v 1.2 2006/05/26 19:57:30 mlhuang Exp $ # # Source function library and configuration . /etc/plc.d/functions . /etc/planetlab/plc_config # Be verbose set -x case "$1" in start) if [ "$PLC_DNS_ENABLED" != "1" ] ; then exit 0 fi MESSAGE=$"Starting DNS server" dialog "$MESSAGE" dns-config check plc_daemon dnsmasq check result "$MESSAGE" ;; stop) MESSAGE=$"Stopping DNS server" dialog "$MESSAGE" killproc plc_dnsmasq check result "$MESSAGE" ;; esac exit $ERRORS