diff options
author | zeripath <art27@cantab.net> | 2023-05-15 23:20:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 22:20:30 +0000 |
commit | 7565e5c3de051400a9e3703f707049cbb9054cf3 (patch) | |
tree | 72d08d94c684a5470f278b2b22429aa37b5181c7 /contrib | |
parent | a5be7f300b5e9946e239dc5225fce4fdae81600f (diff) | |
download | gitea-7565e5c3de051400a9e3703f707049cbb9054cf3.tar.gz gitea-7565e5c3de051400a9e3703f707049cbb9054cf3.zip |
Implement systemd-notify protocol (#21151)
This PR adds support for the systemd notify protocol. Several status
messagess are provided. We should likely add a common notify/status
message for graceful.
Replaces #21140
Signed-off-by: Andrew Thornton <art27@cantab.net>
---------
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: ltdk <usr@ltdk.xyz>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/systemd/gitea.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/systemd/gitea.service b/contrib/systemd/gitea.service index d205c6ee8b..c097fb0d17 100644 --- a/contrib/systemd/gitea.service +++ b/contrib/systemd/gitea.service @@ -52,7 +52,7 @@ After=network.target # Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that # LimitNOFILE=524288:524288 RestartSec=2s -Type=simple +Type=notify User=git Group=git WorkingDirectory=/var/lib/gitea/ @@ -62,6 +62,7 @@ WorkingDirectory=/var/lib/gitea/ ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini Restart=always Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea +WatchdogSec=30s # If you install Git to directory prefix other than default PATH (which happens # for example if you install other versions of Git side-to-side with # distribution version), uncomment below line and add that prefix to PATH |