diff options
author | JonRB <4564448+eeyrjmr@users.noreply.github.com> | 2022-08-28 16:28:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 23:28:42 +0800 |
commit | 8bbb622bb43c6162157cea43e5cf008efac324d3 (patch) | |
tree | 89446c793a15d0eae9b623fbd73d10266adf7bf5 /docs/content/doc/installation | |
parent | bb0ff77e461ae080b1722701aea74010ff71e0ae (diff) | |
download | gitea-8bbb622bb43c6162157cea43e5cf008efac324d3.tar.gz gitea-8bbb622bb43c6162157cea43e5cf008efac324d3.zip |
Add instructions how to add service dependencies (#20968)
Diffstat (limited to 'docs/content/doc/installation')
-rw-r--r-- | docs/content/doc/installation/windows-service.en-us.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/doc/installation/windows-service.en-us.md b/docs/content/doc/installation/windows-service.en-us.md index 0795771524..0db860dfb7 100644 --- a/docs/content/doc/installation/windows-service.en-us.md +++ b/docs/content/doc/installation/windows-service.en-us.md @@ -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 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 To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run: |