cdist/other/types_submitted_for_inclusion/__init_script/man.rst

50 lines
1.1 KiB
ReStructuredText
Raw Permalink Normal View History

2011-10-03 15:33:19 +00:00
cdist-type__init_script(7)
2011-10-05 07:15:20 +00:00
==========================
2016-05-20 06:50:56 +00:00
Use the init scripts
2011-10-03 15:33:19 +00:00
2016-05-20 06:50:56 +00:00
Daniel Roth <dani-cdist--@--d-roth.li>
2011-10-03 15:33:19 +00:00
DESCRIPTION
-----------
This type can be used to control your init scripts.
REQUIRED PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
mode
2011-10-03 15:33:19 +00:00
Specifies what shall be done with the init script (usually one of 'start'|'stop'|'restart'|'reload' or 'force-reload')
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
script
2011-10-03 15:33:19 +00:00
If supplied, use this as the init-script.
2011-10-03 16:00:07 +00:00
Otherwise the object_id is used.
2011-10-03 15:33:19 +00:00
2016-05-20 06:50:56 +00:00
base_dir
2011-10-03 16:00:07 +00:00
If supplied, this type uses this directory instead of '/etc/init.d'. The parameter will not need an ending slash.
2011-10-03 15:33:19 +00:00
2016-05-20 06:50:56 +00:00
2011-10-03 15:33:19 +00:00
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Reloads the configuration for lighttpd
__init_script lighttpd --mode force-reload
2011-10-03 15:33:19 +00:00
2016-05-20 06:50:56 +00:00
# Reloads the configuration for lighttpd
__init_script lighty --script lighttpd --mode force-reload
2011-10-03 15:33:19 +00:00
SEE ALSO
--------
2016-05-20 06:50:56 +00:00
- `cdist-type(7) <cdist-type.html>`_
2011-10-03 15:33:19 +00:00
COPYING
-------
Copyright \(C) 2011 Daniel Roth. Free use of this software is
granted under the terms of the GNU General Public License version 3 (GPLv3).