Changeset 4405 for llx-netinstall


Ignore:
Timestamp:
Apr 25, 2017, 9:03:51 AM (2 years ago)
Author:
hectorgh
Message:

adding restart of dnsmasq as a parameter

Location:
llx-netinstall/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • llx-netinstall/trunk/fuentes/debian/changelog

    r3686 r4405  
     1llx-netinstall (0.60) xenial; urgency=medium
     2
     3  * load_exports won't restart dnsmasq by default.
     4    zero-server-wizard's 999-final_operations will manage that.
     5
     6 -- Hector Garcia Huerta <hectorgh@gmail.com>  Tue, 25 Apr 2017 09:02:00 +0200
     7
    18llx-netinstall (0.59) xenial; urgency=medium
    29
  • llx-netinstall/trunk/fuentes/install.llx-netinstall/usr/share/n4d/python-plugins/NetinstallManager.py

    r4397 r4405  
    5454        #def test
    5555               
    56         def load_exports(self):
     56        def load_exports(self,restart_dnsmasq=False):
    5757                #Get template
    5858                template_cname = self.tpl_env.get_template("cname")
     
    8585                #Write template values
    8686                n4d_mv(tmpfilepath,'/var/lib/dnsmasq/config/cname-preseed',True,'root','root','0644',True )
    87                 #subprocess.Popen(['/etc/init.d/dnsmasq','restart'],stdout=subprocess.PIPE).communicate()
     87                if restart_dnsmasq:
     88                        subprocess.Popen(['systemctl','restart','dnsmasq'],stdout=subprocess.PIPE).communicate()
    8889                return {'status':True,'msg':'Exports written'}
    8990        #def load_exports
Note: See TracChangeset for help on using the changeset viewer.