~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/resolvconf.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-05-06 18:45:46 UTC
  • Revision ID: dimitri.ledkov@canonical.com-20140506184546-5toyx56xxrue0f0v
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# upstart script for resolvconf
 
2
 
 
3
description "Initialize or finalize resolvconf"
 
4
 
 
5
start on mounted MOUNTPOINT=/run
 
6
 
 
7
stop on runlevel [06]
 
8
 
 
9
pre-start script
 
10
        mkdir -p /run/resolvconf/interface
 
11
        # Request a postponed update (needed in case the base file has content).
 
12
        touch /run/resolvconf/postponed-update
 
13
        # Enable updates and perform the postponed update.
 
14
        resolvconf --enable-updates
 
15
end script
 
16
 
 
17
post-stop script
 
18
        resolvconf --disable-updates
 
19
end script