mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 07:20:07 -05:00 
			
		
		
		
	Add instructions how to add service dependencies (#20968)
This commit is contained in:
		@@ -49,6 +49,16 @@ Open "Windows Services", search for the service named "gitea", right-click it an
 | 
				
			|||||||
"Run". If everything is OK, Gitea will be reachable on `http://localhost:3000` (or the port
 | 
					"Run". If everything is OK, Gitea will be reachable on `http://localhost:3000` (or the port
 | 
				
			||||||
that was configured).
 | 
					that was configured).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Adding startup dependancies
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To add a startup dependancy to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					sc.exe config gitea depend= mariadb
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will ensure that when the Windows machine restarts, the automatic starting of Gitea is postponed until the database is ready and thus mitigate failed startups.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Unregister as a service
 | 
					## Unregister as a service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
 | 
					To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user