mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-11-04 11:03:44 +00:00 
			
		
		
		
	Include the etc/init.d/ script for 9pudfuse
This was accidentally not committed as .gitignore is not expressive enough
This commit is contained in:
		
				
					committed by
					
						
						Justin Cormack
					
				
			
			
				
	
			
			
			
						parent
						
							c91006e6e8
						
					
				
				
					commit
					26899fa911
				
			
							
								
								
									
										33
									
								
								alpine/packages/9pudfuse/etc/init.d/9pudfuse
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										33
									
								
								alpine/packages/9pudfuse/etc/init.d/9pudfuse
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,33 @@
 | 
				
			|||||||
 | 
					#!/sbin/openrc-run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					description="9p socket fuse proxy server"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					depend()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						need 9pinit
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					start()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ebegin "Starting FUSE socket passthrough"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudfuse.pid
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#	start-stop-daemon --start --quiet \
 | 
				
			||||||
 | 
					#		--exec /sbin/9pudfuse \
 | 
				
			||||||
 | 
					#		--pidfile "${PIDFILE}" \
 | 
				
			||||||
 | 
					#		-- -path /Transfuse
 | 
				
			||||||
 | 
					#	eend $? "Failed to start 9pudfuse"
 | 
				
			||||||
 | 
						OCAMLRUNPARAM=b /sbin/9pudfuse &
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					stop()
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						ebegin "Stopping FUSE socket passthrough"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						[ -n "${PIDFILE}" ] || PIDFILE=/var/run/9pudfuse.pid
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						start-stop-daemon --stop --quiet \
 | 
				
			||||||
 | 
							--pidfile "${PIDFILE}"
 | 
				
			||||||
 | 
						eend $? "Failed to stop 9pudfuse"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user