You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/installation/run-as-service-in-ubuntu.en-us.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
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,11 +15,11 @@ menu:
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,7 +41,7 @@ If you have systemd version 220 or later, you can enable and immediately start G
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:
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:
0 commit comments