man.rst 932 Bytes
Newer Older
fnux's avatar
fnux committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
cdist-type__service(7)
======================

NAME
----
cdist-type__service - Run action on a system service


DESCRIPTION
-----------
This type allows you to run an action against a system service.


REQUIRED PARAMETERS
-------------------
action
  Arbitrary parameter passed as action. Usually 'start', 'stop', 'reload' or 'restart'.

OPTIONAL PARAMETERS
-------------------
None.


BOOLEAN PARAMETERS
------------------
None.


EXAMPLES
--------

.. code-block:: sh

    # Restart nginx service.
    __service nginx --action restart

    # Stop postfix service.
    __service postfix --action stop


AUTHORS
-------
Timothée Floure <timothee.floure@ungleich.ch>


COPYING
-------
Copyright \(C) 2019 Timothée Floure. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.