~seth-arnold/charms/precise/pdns-recursor/trunk

« back to all changes in this revision

Viewing changes to hooks/start

  • Committer: Seth Arnold
  • Date: 2013-03-28 06:56:54 UTC
  • Revision ID: seth.arnold@canonical.com-20130328065654-glz7wur6a1ofz6l7
Initial charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Copyright 2013 Canonical
 
3
 
 
4
juju-log "Restarting pdns-recursor"
 
5
service pdns-recursor restart
 
6
 
 
7
local_port=$(config-get local_port)
 
8
 
 
9
juju-log "opening port ${port:-53}"
 
10
open-port ${port:-53}/udp