Bug 522743 - Initscript: Missing required actions (condrestart, try-restart and force-reload)
Summary: Initscript: Missing required actions (condrestart, try-restart and force-reload)
Alias: None
Product: Fedora
Classification: Fedora
Component: sysstat
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: InitScriptsProject
TreeView+ depends on / blocked
Reported: 2009-09-11 09:42 UTC by Petr Šplíchal
Modified: 2016-06-01 01:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-14 14:05:47 UTC

Attachments (Terms of Use)

Description Petr Šplíchal 2009-09-11 09:42:44 UTC
Description of problem:

The sysstat's initscript is missing the following actions required
by Fedora SysV Initscripts Guidelines:

    * condrestart (and try-restart)
    * force-reload

Although the sysstat does not work as a regular service, it would
be nice to have these actions covered to provide consistent
interface across all services.

Version-Release number of selected component (if applicable):

Additional info:

Comment 1 Petr Šplíchal 2009-09-11 10:08:20 UTC
Calling an unsupported action should return 2:

:: [   FAIL   ] :: Running 'service sysstat' (Expected 2, got 1)
:: [   FAIL   ] :: Running 'service sysstat nothing' (Expected 2, got 1)


Comment 2 Petr Šplíchal 2009-09-14 07:09:03 UTC
Just an additional remark: Using the exitCodeIndicator to find out
the exit status of calling /usr/lib/sa/sa1 seems to be needless and
mentioned comment irrelevant as the sa1 is now called under root:

    # Try to guess if sadc was successfully launched. The
    # difficulty here is that the exit code is lost when the above
    # command is run via "su foo -c ..."

Comment 3 Ivana Varekova 2009-09-14 14:05:47 UTC
Fixed in sysstat-9.0.3-3.
ad comment #2: this is part of upstream setting, I will discuss the code with upstream later.

Note You need to log in before you can comment on or make changes to this bug.