loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve docs about register/run as a service (#27461)

As title

authored by

Nanguan Lin and committed by
GitHub
28ead9ea 5283ce96

+14 -13
+5 -5
docs/content/installation/run-as-service-in-ubuntu.en-us.md
··· 1 1 --- 2 2 date: "2017-07-21T12:00:00+02:00" 3 - title: "Run as service in Linux" 3 + title: "Run as a Linux service" 4 4 slug: "linux-service" 5 5 sidebar_position: 40 6 6 toc: false ··· 15 15 identifier: "linux-service" 16 16 --- 17 17 18 - ### Run Gitea as Linux service 18 + # Run as a Linux service 19 19 20 - You can run Gitea as service, using either systemd or supervisor. The steps below tested on Ubuntu 16.04, but those should work on any Linux distributions (with little modification). 20 + You can run Gitea as a Linux service, using either systemd or supervisor. The steps below tested on Ubuntu 16.04, but those should work on any Linux distributions (with little modification). 21 21 22 - #### Using systemd 22 + ## Using systemd 23 23 24 24 Copy the sample [gitea.service](https://github.com/go-gitea/gitea/blob/main/contrib/systemd/gitea.service) to `/etc/systemd/system/gitea.service`, then edit the file with your favorite editor. 25 25 ··· 41 41 sudo systemctl enable gitea --now 42 42 ``` 43 43 44 - #### Using supervisor 44 + ## Using supervisor 45 45 46 46 Install supervisor by running below command in terminal: 47 47
+9 -8
docs/content/installation/windows-service.en-us.md
··· 1 1 --- 2 2 date: "2016-12-21T15:00:00-02:00" 3 - title: "Register as a Windows Service" 3 + title: "Register as a Windows service" 4 4 slug: "windows-service" 5 5 sidebar_position: 50 6 6 toc: false ··· 14 14 sidebar_position: 50 15 15 identifier: "windows-service" 16 16 --- 17 + # Register as a Windows service 17 18 18 - # Prerequisites 19 + ## Prerequisites 19 20 20 21 The following changes are made in C:\gitea\custom\conf\app.ini: 21 22 ··· 27 28 28 29 COMPUTERNAME is whatever the response is from `echo %COMPUTERNAME%` on the command line. If the response is `USER-PC` then `RUN_USER = USER-PC$` 29 30 30 - ## Use absolute paths 31 + ### Use absolute paths 31 32 32 33 If you use SQLite3, change the `PATH` to include the full path: 33 34 ··· 36 37 PATH = c:/gitea/data/gitea.db 37 38 ``` 38 39 39 - # Register as a Windows Service 40 + ## Register Gitea 40 41 41 42 To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator, 42 43 then run the following command: ··· 51 52 "Run". If everything is OK, Gitea will be reachable on `http://localhost:3000` (or the port 52 53 that was configured). 53 54 54 - ## Service startup type 55 + ### Service startup type 55 56 56 57 It was observed that on loaded systems during boot Gitea service may fail to start with timeout records in Windows Event Log. 57 58 In that case change startup type to `Automatic-Delayed`. This can be done during service creation, or by running config command ··· 60 61 sc.exe config gitea start= delayed-auto 61 62 ``` 62 63 63 - ## Adding startup dependencies 64 + ### Adding startup dependencies 64 65 65 66 To add a startup dependency to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command: 66 67 ··· 70 71 71 72 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. 72 73 73 - ## Unregister as a service 74 + ## Unregister Gitea 74 75 75 - To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run: 76 + To unregister Gitea as a Windows service, open a command prompt (cmd) as an Administrator and run: 76 77 77 78 ``` 78 79 sc.exe delete gitea