Changeset 4398


Ignore:
Timestamp:
Apr 21, 2017, 9:39:17 PM (2 years ago)
Author:
hectorgh
Message:

using systemd instead of upstart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-dnsmasq/trunk/fuentes/install-dnsmasq/usr/share/n4d/python-plugins/DnsmasqManager.py

    r2018 r4398  
    122122                                                os.system(cmd)
    123123
    124                                 os.system("service dnsmasq restart")
     124                                os.system("systemctl restart dnsmasq")
    125125
    126126                                return [True,""]
     
    509509        def reboot_dhcpd(self):
    510510                #Restart dhcpd service
    511                 subprocess.Popen(['service','dnsmasq','restart'],stdout=subprocess.PIPE).communicate()
     511                subprocess.Popen(['systemctl','restart','dnsmasq'],stdout=subprocess.PIPE).communicate()
    512512                return {'status':True,'msg':'DNSMASQ rebooted'}
    513513        #def reboot_dhcpd
Note: See TracChangeset for help on using the changeset viewer.