describe how __process should work

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.5
Nico Schottelius 14 years ago
parent 06fe371b1d
commit e4467de8fd
  1. 17
      conf/type/__process/man.text

@ -21,13 +21,28 @@ state::
OPTIONAL PARAMETERS
-------------------
None
stop::
Executable to use for stopping the process.
start::
Executable to use for starting the process.
EXAMPLES
--------
--------------------------------------------------------------------------------
# Start /usr/sbin/sshd if not running
__process /usr/sbin/sshd --state running
# Start /usr/sbin/sshd if not running with a different binary
__process /usr/sbin/sshd --state running --start "/etc/rc.d/sshd start"
# Stop the process using kill (the type default)
__process /usr/sbin/sshd --state stopped
# Stop the process using /etc/rc.d/sshd stop
__process /usr/sbin/sshd --state stopped --stop "/etc/rc.d/sshd stop"
--------------------------------------------------------------------------------

Loading…
Cancel
Save