forked from ungleich-public/cdist
		
	Add messaging to __process
This commit is contained in:
		
					parent
					
						
							
								07581e7231
							
						
					
				
			
			
				commit
				
					
						d1c3e2420f
					
				
			
		
					 2 changed files with 17 additions and 4 deletions
				
			
		| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
 | 
					# 2011-2012 Nico Schottelius (nico-cdist at schottelius.org)
 | 
				
			||||||
# 2014 Steven Armstrong (steven-cdist at armstrong.cc)
 | 
					# 2014 Steven Armstrong (steven-cdist at armstrong.cc)
 | 
				
			||||||
 | 
					# 2017 Thomas Eckert (tom at it-eckert.de)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This file is part of cdist.
 | 
					# This file is part of cdist.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					@ -45,6 +46,7 @@ case "$state_should" in
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            echo "$name"
 | 
					            echo "$name"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					        echo "started" >> "$__messages_out"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
    absent)
 | 
					    absent)
 | 
				
			||||||
        if [ -f "$__object/parameter/stop" ]; then
 | 
					        if [ -f "$__object/parameter/stop" ]; then
 | 
				
			||||||
| 
						 | 
					@ -52,6 +54,7 @@ case "$state_should" in
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            echo kill "${runs}"
 | 
					            echo kill "${runs}"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					        echo "stopped" >> "$__messages_out"
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
    *)
 | 
					    *)
 | 
				
			||||||
        echo "Unknown state: $state_should" >&2
 | 
					        echo "Unknown state: $state_should" >&2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,6 +30,15 @@ start
 | 
				
			||||||
    Executable to use for starting the process.
 | 
					    Executable to use for starting the process.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MESSAGES
 | 
				
			||||||
 | 
					--------
 | 
				
			||||||
 | 
					started
 | 
				
			||||||
 | 
					    The process was started.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					stopped
 | 
				
			||||||
 | 
					    The process was stopped.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXAMPLES
 | 
					EXAMPLES
 | 
				
			||||||
--------
 | 
					--------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,7 +72,8 @@ SEE ALSO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AUTHORS
 | 
					AUTHORS
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
Nico Schottelius <nico-cdist--@--schottelius.org>
 | 
					| Nico Schottelius <nico-cdist--@--schottelius.org>
 | 
				
			||||||
 | 
					| Thomas Eckert <tom--@--it-eckert.de>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPYING
 | 
					COPYING
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue