mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Systemd needs After as well as Require (#15881)
If the gitea service is stopped because of the db going down it needs an `After=db.service` to ensure it is restarted in addition to the `Requires=db.service` to ensure that the db is started before gitea is started. Fix #15866 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -7,10 +7,19 @@ After=network.target
 | 
				
			|||||||
###
 | 
					###
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#Requires=mysql.service
 | 
					#Requires=mysql.service
 | 
				
			||||||
 | 
					#After=mysql.service
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
#Requires=mariadb.service
 | 
					#Requires=mariadb.service
 | 
				
			||||||
 | 
					#After=mariadb.service
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
#Requires=postgresql.service
 | 
					#Requires=postgresql.service
 | 
				
			||||||
 | 
					#After=postgresql.service
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
#Requires=memcached.service
 | 
					#Requires=memcached.service
 | 
				
			||||||
 | 
					#After=memcached.service
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
#Requires=redis.service
 | 
					#Requires=redis.service
 | 
				
			||||||
 | 
					#After=redis.service
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
###
 | 
					###
 | 
				
			||||||
# If using socket activation for main http/s
 | 
					# If using socket activation for main http/s
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user