{"action":"closed","issue":{"url":"https://api.github.com/repos/darold/sendmailanalyzer/issues/36","repository_url":"https://api.github.com/repos/darold/sendmailanalyzer","labels_url":"https://api.github.com/repos/darold/sendmailanalyzer/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/darold/sendmailanalyzer/issues/36/comments","events_url":"https://api.github.com/repos/darold/sendmailanalyzer/issues/36/events","html_url":"https://github.com/darold/sendmailanalyzer/issues/36","id":140481204,"number":36,"title":"rc.sendmailanalyzer not stopping corectly","user":{"login":"sirydog81","id":5815330,"avatar_url":"https://avatars.githubusercontent.com/u/5815330?v=3","gravatar_id":"","url":"https://api.github.com/users/sirydog81","html_url":"https://github.com/sirydog81","followers_url":"https://api.github.com/users/sirydog81/followers","following_url":"https://api.github.com/users/sirydog81/following{/other_user}","gists_url":"https://api.github.com/users/sirydog81/gists{/gist_id}","starred_url":"https://api.github.com/users/sirydog81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirydog81/subscriptions","organizations_url":"https://api.github.com/users/sirydog81/orgs","repos_url":"https://api.github.com/users/sirydog81/repos","events_url":"https://api.github.com/users/sirydog81/events{/privacy}","received_events_url":"https://api.github.com/users/sirydog81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-13T12:29:32Z","updated_at":"2016-08-31T21:42:46Z","closed_at":"2016-08-31T21:42:46Z","body":"i see there are two process running, a parent and a child\r\n```\r\n#ps -auxf\r\nroot      3662  0.0  0.2   7668  4924 ?        Ss   12:25   0:00 sendmailanalyzer\r\nroot      3663  0.0  0.0   1972   568 ?        S    12:25   0:00  \\_ /usr/bin/tail -n 0 -F /var/log/maillog\r\n```\r\n\r\nrc.sendmailanalyzer stop is trying to stop process 3662 that is saved in the sendmailanalyzer.pid file. In my case it always fails. Even if if i force kill the parent, the child still remains and becomes a zombie.\r\n\r\nBoth processes belong to same PGID\r\n```\r\n# ps x -o  \"%p %r %c\"\r\n  PID  PGID COMMAND\r\n 3662  3662 sendmailanalyze\r\n 3663  3662 tail\r\n```\r\n\r\nso i modified the script to kill all processes belonging to that GPID:\r\n```\r\nkill **-- -**$pid 1> /dev/null 2> /dev/null\r\n```\r\n"}}
{"actor":{"display_login":"darold"}}