Skip to content

Commit d0e7361

Browse files
camlafitguillep2k6543lafriks
authored
Propose an explanation how to restart gracefully gitea after an update (#10866)
Co-authored-by: guillep2k <[email protected]> Co-authored-by: 6543 <[email protected]> Co-authored-by: Lauris BH <[email protected]>
1 parent 606d9d6 commit d0e7361

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/content/doc/installation/from-binary.en-us.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ It is recommended you do a [backup]({{< relref "doc/usage/backup-and-restore.en-
113113
If you have carried out the installation steps as described above, the binary should
114114
have the generic name `gitea`. Do not change this, i.e. to include the version number.
115115

116+
### 1. Restarting gitea with systemd (recommended)
117+
118+
As explained before, we recommend to use systemd as service manager. In this case ```systemctl restart gitea``` should be enough.
119+
120+
### 2. Restarting gitea without systemd
121+
122+
To restart your gitea instance, we recommend to use SIGHUP signal. If you know your gitea PID use ```kill -1 $GITEA_PID``` otherwise you can use ```killall -1 gitea``` or ```pkill -1 gitea```
123+
124+
To gracefully stop the gitea instance, a simple ```kill $GITEA_PID``` or ```killall gitea``` is enough.
125+
126+
**NOTE:** We don't recommend to use SIGKILL signal (know also as `-9`), you may be forcefully stopping some of Gitea internal tasks and it will not gracefully stop (tasks in queues, indexers processes, etc.)
127+
116128
See below for troubleshooting instructions to repair broken repositories after
117129
an update of your Gitea version.
118130

0 commit comments

Comments
 (0)