summarylogtreecommitdiffstats
path: root/gitlab-pages.service
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-pages.service')
-rw-r--r--gitlab-pages.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/gitlab-pages.service b/gitlab-pages.service
new file mode 100644
index 00000000000..f3252552e68
--- /dev/null
+++ b/gitlab-pages.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=GitLab Pages
+After=syslog.target network.target
+ConditionFileIsExecutable=/usr/bin/gitlab-pages
+
+[Service]
+User=gitlab
+Group=gitlab
+StartLimitInterval=5
+StartLimitBurst=10
+ExecStart=/usr/bin/gitlab-pages -config /etc/gitlab-pages/config.cfg
+Restart=always
+RestartSec=120
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=gitlab-pages
+PrivateTmp=true
+ProtectSystem=full
+ProtectHome=true
+CapabilityBoundingSet=
+
+[Install]
+WantedBy=multi-user.target