]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: usable status command for special units (#4072)
authorCireo <reid.price@gmail.com>
Thu, 1 Sep 2016 09:04:36 +0000 (02:04 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Sep 2016 09:04:36 +0000 (11:04 +0200)
commita6405ca288ed3458589c82b6c6ddf87e8c054858
treec5b6f66443386aa992e471b167facfb620db155f
parent8be16f23e42854a5cfd2d6edb5d3719a7c1508aa
systemctl: usable status command for special units (#4072)

Prior to this commit, users could be given an unusable command to run if
they attempted to stop or start special services.  For example:

    $ systemctl stop -- -.mount
    Failed to stop -.mount: Operation refused, unit -.mount may be \
        requested by dependency only.
    See system logs and 'systemctl status -.mount' for details.

    $ systemctl status -.mount
    systemctl: invalid option -- '.'

This adds a '--' to the example command in these situations.
src/systemctl/systemctl.c