Bug 430882
| Summary: | 'service sshd status' is broken | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Martin Poole <mpoole> |
| Component: | openssh | Assignee: | Petr Lautrbach <plautrba> |
| Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.6 | CC: | happy, jwest, riek, tao, xuther |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-14 20:28:14 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: | |||
| Bug Depends On: | 430877 | ||
| Bug Blocks: | |||
|
Description
Martin Poole
2008-01-30 12:34:18 UTC
Actually status -p $PID_FILE openssh-daemon must be used otherwise it is not correct either. This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". *** Bug 479838 has been marked as a duplicate of this bug. *** Customer is also asking for this to be fixed in RHEL4. This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". I realize this is for ssh, but I seem to be running into a similar issue with trying to run a second instance of apache with a different init script and configuration file. The problem does appear to be with /etc/init.d/functions as it defaults to pidof for checking status on a program even when you specify a pidfile. It never even makes it to the pidfile check because it returns right away.
status() {
.............
# First try "pidof"
pid="$(__pids_pidof "$1")"
if [ -n "$pid" ]; then
echo $"${base} (pid $pid) is running..."
return 0
fi
# Next try "/var/run/*.pid" files
__pids_var_run "$1" "$pid_file"
............
}
This causes "service <scriptname> status" to report the same pids as "service httpd status", I imagine if I was running multiple copies of sshd with different configurations that it would be the same issue.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. |