You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by bu...@apache.org on 2020/12/15 04:14:41 UTC

[Bug 64989] New: Useless cat re kill signal example

https://bz.apache.org/bugzilla/show_bug.cgi?id=64989

            Bug ID: 64989
           Summary: Useless cat re kill signal example
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: Other
                OS: other
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Documentation
          Assignee: docs@httpd.apache.org
          Reporter: chrisdavidramos@gmail.com
  Target Milestone: ---

Hello,

On this* page, there is a useless cat in this example:
`kill -TERM `cat /usr/local/apache2/logs/httpd.pid``


My suggestion is to change it to this:
`kill -TERM $(</usr/local/apache2/logs/httpd.pid)`


My understanding is this suggested code is POSIX compliant.


* https://httpd.apache.org/docs/trunk/stopping.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


[Bug 64989] Useless cat re kill signal example

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64989

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WONTFIX

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


[Bug 64989] Useless cat re kill signal example

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64989

--- Comment #2 from Joe Orton <jo...@redhat.com> ---
The documented "kill `cat X.pid`" seems clearer to me than the proposed
alternative so I'd leave it as-is.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


[Bug 64989] Useless cat re kill signal example

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64989

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Rich Bowen <rb...@apache.org> ---
I'm somewhat torn on this particular bz.

This doc uses the /usr/local/apache2 file path, which is not the default
location. But it's been in there for 24 years, and somehow I never noticed it
before, so I suppose perhaps it's not that big of a deal.

On the other hand, I'm not sure we should be encouraging people to `kill -TERM`
processes in the first place?

Anybody got feels on this?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org