Bug 40048

Summary: ${PM_UTILS_LIBDIR)/bin/service status always returns " running" in ArchLinux.
Product: pm-utils Reporter: Agustín Dall'Alba <agustin>
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.