Bug 2385
Summary: | The /etc/rc.d/functions daemon function used in rc files kills by process name, this causes problems | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | bapper |
Component: | initscripts | Assignee: | David Lawrence <dkl> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 1999-07-06 19:10:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
bapper
1999-04-27 17:27:13 UTC
- first of all, I'm assuming you mean killproc(). daemon() doesn't kill anything. - killproc() uses pidofproc, which first checks pid files, and then ps, etc. What are you trying to do that you need to specify some but not all processes?- first of all, I'm assuming you mean killproc(). daemon() doesn't kill anything. - killproc() uses pidofproc, which first checks pid files, and then ps, etc. What are you trying to do that you need to specify some but not all processes? Okay, I filled it out without rechecking what was going on. The problem I'm running into is with daemon not starting a process of the same name. I'm doing a project with 2 web server configurations and if I use daemon, it returns imediately without launching the second web server. I save the pid of the second webserver to a different file name (ie. httpd.internal.pid). So the pidofproc() function will eventually use ps to get the pid of the first webserver and daemon will not launch the second. The way debian does their start-stop-daemon script is they allow you to specify a pidfile for the daemon you are going to be starting. This isn't a huge deal for us because we can just start httpd however we want. We just wanted to do things the way Redhat does them because we are creating an add-on to Redhat. The ability to specify a pidfile would be a nice feature. |