Skip to content

Commit 8bbb622

Browse files
authored
Add instructions how to add service dependencies (#20968)
1 parent bb0ff77 commit 8bbb622

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/doc/installation/windows-service.en-us.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ Open "Windows Services", search for the service named "gitea", right-click it an
4949
"Run". If everything is OK, Gitea will be reachable on `http://localhost:3000` (or the port
5050
that was configured).
5151

52+
## Adding startup dependancies
53+
54+
To add a startup dependancy to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
55+
56+
```
57+
sc.exe config gitea depend= mariadb
58+
```
59+
60+
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.
61+
5262
## Unregister as a service
5363

5464
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:

0 commit comments

Comments
 (0)