summarylogtreecommitdiffstats
path: root/gitlab-pages.service
diff options
context:
space:
mode:
authorMelvin Vermeeren2017-11-16 22:29:57 +0100
committerMelvin Vermeeren2017-11-16 22:29:57 +0100
commit5ad463d9ef85a43211784ac6085418cb63ebe797 (patch)
treecbecdee5fb18e3c34cbf65f1abd911c18ae907ed /gitlab-pages.service
downloadaur-5ad463d9ef85a43211784ac6085418cb63ebe797.tar.gz
0.6.0 (tested on own server, works nicely)
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 000000000000..f3252552e68e
--- /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