add open-rc init script
This commit is contained in:
		
							
								
								
									
										12
									
								
								webapp.initrc
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								webapp.initrc
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | #!/sbin/openrc-run | ||||||
|  |  | ||||||
|  | name="busybox $SVCNAME" | ||||||
|  | command="/opt/webapp/app.sh" | ||||||
|  | command_args="" | ||||||
|  | pidfile="/var/run/$SVCNAME.pid" | ||||||
|  |  | ||||||
|  | depend() { | ||||||
|  | 	need net | ||||||
|  | 	use dns | ||||||
|  | } | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user