瀏覽代碼

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
 WorkingDirectory=/home/git/gogs
 ExecStart=/home/git/gogs/gogs web
 ExecStart=/home/git/gogs/gogs web
 Restart=always
 Restart=always
+RestartSec=2s
 Environment=USER=git HOME=/home/git
 Environment=USER=git HOME=/home/git
 
 
 # Some distributions may not support these hardening directives. If you cannot start the service due
 # Some distributions may not support these hardening directives. If you cannot start the service due