GitHub user dangogh opened a pull request:

    https://github.com/apache/incubator-trafficcontrol/pull/823

    [TC-374] handle orphan processes in TO init.d

    allows stop and/or restart of TO in case of orphaned workers.
    
    To test,  find a worker process (`ps -ef | grep 
/opt/traffic_ops/app/scripts/cdn`) and kill with a HUP signal:   `kill -HUP 
5432`
    
    You should see a new process with a parent of 1:
    
    ```
    $ ps -ef | awk '/^trafops/&&/\/script\/cdn/ { if ($3 == 1) {print} }'
    trafops  29881     1  0 18:05 ?        00:00:00 
/opt/traffic_ops/app/script/cdn```
    ```
    
    Restart:
    ```sudo systemctl restart traffic_ops```
    
    The only `/script/cdn` process with a parent of 1 should be owned by `root` 
and should be the one in the `/var/run/traffic_ops.pid` file.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dangogh/incubator-trafficcontrol TC-374

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafficcontrol/pull/823.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #823
    
----
commit c65c2e7d0125e14917341bd8ac05edcb559b5599
Author: Dan Kirkwood <dang...@gmail.com>
Date:   2017-08-16T18:31:28Z

    handle orphan processes in TO

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to