Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-12 16:01:54 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-12 16:01:54 +0300
commit34f19dff7a86564df6afe5fdf34a3ac94cc14b33 (patch)
tree16a8ab94132a9a46fc77f3e0eda075d699d4c073 /app.go
parent88e8fb2a91372ec8a64b82a976a0e51c8f925446 (diff)
Allow to daemonize the app
Diffstat (limited to 'app.go')
-rw-r--r--app.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.go b/app.go
index 04f71949..4ab6a3e7 100644
--- a/app.go
+++ b/app.go
@@ -124,3 +124,8 @@ func (a *theApp) Run() {
wg.Wait()
}
+
+func runApp(config appConfig) {
+ a := theApp{appConfig: config}
+ a.Run()
+}