mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add support for OpenRC runscripts (#2935)
This commit is contained in:
		
				
					committed by
					
						 Arfon Smith
						Arfon Smith
					
				
			
			
				
	
			
			
			
						parent
						
							176a0e9926
						
					
				
				
					commit
					5466fcfd2f
				
			| @@ -2525,6 +2525,16 @@ OpenEdge ABL: | |||||||
|   tm_scope: source.abl |   tm_scope: source.abl | ||||||
|   ace_mode: text |   ace_mode: text | ||||||
|  |  | ||||||
|  | OpenRC runscript: | ||||||
|  |   type: programming | ||||||
|  |   group: Shell | ||||||
|  |   aliases: | ||||||
|  |   - openrc | ||||||
|  |   interpreters: | ||||||
|  |   - openrc-run | ||||||
|  |   tm_scope: source.shell | ||||||
|  |   ace_mode: sh | ||||||
|  |  | ||||||
| OpenSCAD: | OpenSCAD: | ||||||
|   type: programming |   type: programming | ||||||
|   extensions: |   extensions: | ||||||
|   | |||||||
							
								
								
									
										19
									
								
								samples/OpenRC runscript/acpid
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								samples/OpenRC runscript/acpid
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | #!/sbin/openrc-run | ||||||
|  |  | ||||||
|  | description="Daemon for Advanced Configuration and Power Interface" | ||||||
|  |  | ||||||
|  | extra_started_commands="reload" | ||||||
|  | command="/usr/sbin/acpid" | ||||||
|  | command_args="$ACPID_ARGS" | ||||||
|  | start_stop_daemon_args="--quiet" | ||||||
|  |  | ||||||
|  | depend() { | ||||||
|  | 	need localmount | ||||||
|  | 	use logger | ||||||
|  | } | ||||||
|  |  | ||||||
|  | reload() { | ||||||
|  | 	ebegin "Reloading acpid configuration" | ||||||
|  | 	start-stop-daemon --exec $command --signal HUP | ||||||
|  | 	eend $? | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user