소스 검색

fix(systemd script): define RestartSec as 2 (#7733)

Jiaxin Zhu 1 년 전
부모
커밋
6f9b63517d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scripts/systemd/gogs.service

+ 1 - 0
scripts/systemd/gogs.service

@@ -17,6 +17,7 @@ Group=git
 WorkingDirectory=/home/git/gogs
 ExecStart=/home/git/gogs/gogs web
 Restart=always
+RestartSec=2s
 Environment=USER=git HOME=/home/git
 
 # Some distributions may not support these hardening directives. If you cannot start the service due