Skip to content

Commit

Permalink
Add instructions how to add service dependencies (go-gitea#20968)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeyrjmr authored Aug 28, 2022
1 parent bb0ff77 commit 8bbb622
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/content/doc/installation/windows-service.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8bbb622

Please sign in to comment.