~ubuntu-branches/ubuntu/raring/maas/raring-proposed

« back to all changes in this revision

Viewing changes to services/dns/run

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-17 08:28:36 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20120717082836-ucb2vou8tqg353eq
Tags: 0.1+bzr777+dfsg-0ubuntu1
* New upstream release
* Only run 'maas' command as root. (LP: #974046)
  - debian/extras/maas: Check id.
  - debian/maas.install: Install in 'sbin'.
* debian/maas.postinst:
  - restart apache2 after everything gets processed.
  - Update version to handle upgrades.
* debian/extras/maas-provision: Add wrapper to access 'maasprovisiong'
  command line.
* debian/patches/99_temporary_fix_path.patch: Dropped. No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# because there are race issues when restarting.
13
13
[ -z "${logdir:-}" ] || exec &>> "${logdir}/current"
14
14
 
 
15
homedir=`pwd`/run/named
 
16
port=5246
 
17
rndc_port=5247
 
18
# Create DNS config.
 
19
bin/py -m maastesting.bindfixture -- \
 
20
    --create-config-only --overwrite-config \
 
21
    --homedir $homedir \
 
22
    --port $port --rndc-port $rndc_port
 
23
# Create MAAS' DNS config.
 
24
./bin/maas set_up_dns
 
25
# Edit the fixture's named.conf to include MAAS' DNS config.
 
26
./bin/maas get_named_conf --edit --config_path \
 
27
    `pwd`/run/named/named.conf
15
28
# Run named.
16
29
exec bin/py -m maastesting.bindfixture -- \
17
 
    --homedir `pwd`/run/named \
18
 
    --log-file `pwd`/logs/dns/current \
19
 
    --port 5244 --rndc-port 5245
 
30
    --homedir $homedir \
 
31
    --port $port --rndc-port $rndc_port