summaryrefslogtreecommitdiffstats
path: root/modules/graceful
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graceful')
-rw-r--r--modules/graceful/context.go3
-rw-r--r--modules/graceful/manager.go3
-rw-r--r--modules/graceful/manager_unix.go3
-rw-r--r--modules/graceful/manager_windows.go3
-rw-r--r--modules/graceful/net_unix.go4
-rw-r--r--modules/graceful/net_windows.go4
-rw-r--r--modules/graceful/restart_unix.go4
-rw-r--r--modules/graceful/server.go4
-rw-r--r--modules/graceful/server_hooks.go3
-rw-r--r--modules/graceful/server_http.go3
10 files changed, 14 insertions, 20 deletions
diff --git a/modules/graceful/context.go b/modules/graceful/context.go
index b9d975a1d5..6b5b207ff3 100644
--- a/modules/graceful/context.go
+++ b/modules/graceful/context.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager.go b/modules/graceful/manager.go
index 21f019fb56..c7b4c101ef 100644
--- a/modules/graceful/manager.go
+++ b/modules/graceful/manager.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go
index ba1dbd38f6..ca6ccc1b66 100644
--- a/modules/graceful/manager_unix.go
+++ b/modules/graceful/manager_unix.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
//go:build !windows
diff --git a/modules/graceful/manager_windows.go b/modules/graceful/manager_windows.go
index 10c1d67b97..212ddf437c 100644
--- a/modules/graceful/manager_windows.go
+++ b/modules/graceful/manager_windows.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/net_unix.go b/modules/graceful/net_unix.go
index 0bb589e231..a2620d2c80 100644
--- a/modules/graceful/net_unix.go
+++ b/modules/graceful/net_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/net_windows.go b/modules/graceful/net_windows.go
index 07ae51b8dd..a2f58e224a 100644
--- a/modules/graceful/net_windows.go
+++ b/modules/graceful/net_windows.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build windows
diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go
index 1d0d1059e9..406fe6c8af 100644
--- a/modules/graceful/restart_unix.go
+++ b/modules/graceful/restart_unix.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is heavily inspired by the archived gofacebook/gracenet/net.go handler
//go:build !windows
diff --git a/modules/graceful/server.go b/modules/graceful/server.go
index 30a460a943..e42d35cd49 100644
--- a/modules/graceful/server.go
+++ b/modules/graceful/server.go
@@ -1,6 +1,6 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
+
// This code is highly inspired by endless go
package graceful
diff --git a/modules/graceful/server_hooks.go b/modules/graceful/server_hooks.go
index c634905711..9b67589571 100644
--- a/modules/graceful/server_hooks.go
+++ b/modules/graceful/server_hooks.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful
diff --git a/modules/graceful/server_http.go b/modules/graceful/server_http.go
index 8ab2bdf41f..a1f8e0ff52 100644
--- a/modules/graceful/server_http.go
+++ b/modules/graceful/server_http.go
@@ -1,6 +1,5 @@
// Copyright 2019 The Gitea Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
+// SPDX-License-Identifier: MIT
package graceful