Bug 40048 - ${PM_UTILS_LIBDIR)/bin/service status always returns " running" in ArchLinux.
Summary: ${PM_UTILS_LIBDIR)/bin/service status always returns " running" in ArchLinux.
Status: RESOLVED WONTFIX
Alias: None
Product: pm-utils
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium major
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 10:59 UTC by Agustín Dall'Alba
Modified: 2018-06-29 19:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Agustín Dall'Alba 2011-08-12 10:59:30 UTC
This is because the status() function in Arch is:

status() { [ -e "/var/run/daemons/$1" ] && echo "$1 running"; }
(line 23)

But it's later called:

start|stop|status) "$2"  ;;
(line 32)

i.e. without arguments.
The fix is trivial:

start|stop|status) "$2" "$1" ;;
Comment 1 Adam Jackson 2018-06-29 19:57:16 UTC
pm-utils hasn't been touched in eight years, none of this is likely to get addressed. Closing bugs and disabling the bz product.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.