コード例 #1
0
ファイル: dnsmasq.py プロジェクト: QiRaining/zstack-utility
 def _do_dnsmasq_stop(self):
     if linux.is_systemd_enabled():
         cmd = shell.ShellCmd('systemctl stop dnsmasq')
     else:
         cmd = shell.ShellCmd('/etc/init.d/dnsmasq stop')
     return cmd(False)
コード例 #2
0
ファイル: dnsmasq.py プロジェクト: ilibx/zstack-utility
 def _do_dnsmasq_stop(self):
     if linux.is_systemd_enabled():
         cmd = shell.ShellCmd('systemctl stop dnsmasq')
     else:
         cmd = shell.ShellCmd('/etc/init.d/dnsmasq stop')
     return cmd(False)
コード例 #3
0
ファイル: dnsmasq.py プロジェクト: QiRaining/zstack-utility
 def _do_dnsmasq_restart(self):
     if linux.is_systemd_enabled():
         shell.call('systemctl restart dnsmasq')
     else:
         shell.call('/etc/init.d/dnsmasq restart')
コード例 #4
0
ファイル: dnsmasq.py プロジェクト: ilibx/zstack-utility
 def _do_dnsmasq_restart(self):
     if linux.is_systemd_enabled():
         shell.call('systemctl restart dnsmasq')
     else:
         shell.call('/etc/init.d/dnsmasq restart')