import subprocess
p_restart=subprocess.Popen(['/bin/sh','/etc/init.d/xxx_service','reboot'])

 

相关文章: