diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-10-08 02:29:35 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-10-08 02:29:35 +0300 |
commit | 247bd7ba2fd9139711218c6a42ed03c551f958d9 (patch) | |
tree | 5f34b0cf1bf51aed35fe35d5396916e89eef5485 /main.go | |
parent | c48bb316739e39ba1b225f12147fad45337aa711 (diff) | |
parent | bf039d89071e527e2e5c1bc2e64c7513d87cba1a (diff) |
Merge branch 'remove/root' into 'master'
Remove gitlab-pages daemon
Closes #114 and #133
See merge request gitlab-org/gitlab-pages!542
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -5,7 +5,6 @@ import ( "io" "math/rand" "os" - "strings" "time" "github.com/sirupsen/logrus" @@ -71,7 +70,7 @@ func appMain() { log.WithFields(log.Fields{ "version": VERSION, "revision": REVISION, - }).Info("GitLab Pages Daemon") + }).Info("GitLab Pages") log.Info("URL: https://gitlab.com/gitlab-org/gitlab-pages") if err := os.Chdir(config.General.RootDir); err != nil { @@ -85,20 +84,6 @@ func appMain() { defer closeAll(cs) } - if config.Daemon.UID != 0 || config.Daemon.GID != 0 { - if err := daemonize(config); err != nil { - if strings.Contains(err.Error(), "signal:") { - log.WithField("signal", err.Error()).Info("daemon received signal") - return - } - - errortracking.Capture(err) - fatal(err, "could not create pages daemon") - } - - return - } - runApp(config) } @@ -205,6 +190,5 @@ func main() { metrics.MustRegister() - daemonMain() appMain() } |