Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job 管理-kill job 不适用windows及suse操作系统 #28

Open
weichuankui opened this issue Dec 5, 2019 · 0 comments
Open

Job 管理-kill job 不适用windows及suse操作系统 #28

weichuankui opened this issue Dec 5, 2019 · 0 comments

Comments

@weichuankui
Copy link

#代码行

获取pgid 并杀掉

                    kill_ppid_pid = r'''ps -eo pid,pgid,ppid,comm |grep %s |grep salt-minion |
                                        awk '{print "kill -- -"$2}'|sh''' % ppid

在windows及Suse 系统中均无法执行。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant