forked from ungleich-public/cdist
		
	Implement "__start_on_boot --state absent" for OpenBSD
This commit is contained in:
		
					parent
					
						
							
								689f37acf6
							
						
					
				
			
			
				commit
				
					
						15ab7c0810
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -82,7 +82,7 @@ case "$state_should" in
 | 
				
			||||||
                ;;
 | 
					                ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                openbsd)
 | 
					                openbsd)
 | 
				
			||||||
                    # OpenBSD 5.7 and phigher
 | 
					                    # OpenBSD 5.7 and higher
 | 
				
			||||||
                    echo "rcctl enable '$name'"
 | 
					                    echo "rcctl enable '$name'"
 | 
				
			||||||
                ;;
 | 
					                ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -118,6 +118,11 @@ case "$state_should" in
 | 
				
			||||||
                    echo "'/etc/init.d/$name' disable"
 | 
					                    echo "'/etc/init.d/$name' disable"
 | 
				
			||||||
                    ;;
 | 
					                    ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                openbsd)
 | 
				
			||||||
 | 
					                    # OpenBSD 5.7 and higher
 | 
				
			||||||
 | 
					                    echo "rcctl disable '$name'"
 | 
				
			||||||
 | 
					                ;;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                *)
 | 
					                *)
 | 
				
			||||||
                   echo "Unsupported os: $os" >&2
 | 
					                   echo "Unsupported os: $os" >&2
 | 
				
			||||||
                   exit 1
 | 
					                   exit 1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue