mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Add an OpenBSD daemon control script (#3060)
This commit is contained in:
		
				
					committed by
					
						
						无闻
					
				
			
			
				
	
			
			
			
						parent
						
							e84ac64964
						
					
				
				
					commit
					f0df46c88a
				
			
							
								
								
									
										19
									
								
								scripts/init/openbsd/gogs
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								scripts/init/openbsd/gogs
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# $OpenBSD$
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					daemon="/home/git/gogs/gogs"
 | 
				
			||||||
 | 
					daemon_user="git"
 | 
				
			||||||
 | 
					daemon_flags="web"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					gogs_directory="/home/git/gogs"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rc_bg=YES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					. /etc/rc.d/rc.subr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rc_start() {
 | 
				
			||||||
 | 
						${rcexec} "cd ${gogs_directory}; ${daemon} ${daemon_flags} ${_bg}"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rc_cmd $1
 | 
				
			||||||
		Reference in New Issue
	
	Block a user