[systemd-bugs] [Bug 89429] New: RFE: systemctl "dry run"/"preflight" mode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 4 10:56:31 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89429

            Bug ID: 89429
           Summary: RFE: systemctl "dry run"/"preflight" mode
           Product: systemd
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: kanepyork at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

I want a mode for systemctl to "dry run" or "preflight" a
start/stop/isolate/etc operation.

This would be useful for debugging unit files ("what does it actually try to do
when I start this?") or isolate commands to custom targets.
It would also enable some other niceties, such as not needing to ask for
authentication to do nothing.


As an example, here's a sample shell session I would want to have on my dev
system:

    $ systemctl start -n postgresql
    To start: postgresql.service postgresql at 9.4-main.service
    Already started: basic.target
    $ systemctl start -n basic.target
    Nothing to do.
    $ systemctl start -P postgresql

(Auth, it starts...)

    $ systemctl start -n postgresql
    Nothing to do.
    $ systemctl start -P postgresql

(No PolicyKit dialog shows up, as the preflight check returns with 'nothing to
do', so no need to auth!)

I'm aware that the -n option is already taken, but it doesn't apply to the
(sub)commands that would be affected by this.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150304/d8e4cf89/attachment.html>


More information about the systemd-bugs mailing list