Bug 89429 - RFE: systemctl "dry run"/"preflight" mode
Summary: RFE: systemctl "dry run"/"preflight" mode
Status: NEW
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
Depends on:
Reported: 2015-03-04 18:56 UTC by Kane York
Modified: 2015-03-04 18:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Kane York 2015-03-04 18:56:31 UTC
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@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.

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.