summarylogtreecommitdiffstats
path: root/gerrit.systemd
diff options
context:
space:
mode:
authorDaniel Nagy2015-06-08 19:41:52 +0200
committerDaniel Nagy2015-06-08 19:41:52 +0200
commit99f4ed1439ea0fb6f38b7324e5e066c714c551eb (patch)
treefeb53113227c6bb0e5ee42555dfa0ff0d7cc1638 /gerrit.systemd
downloadaur-99f4ed1439ea0fb6f38b7324e5e066c714c551eb.tar.gz
import to aur4
Diffstat (limited to 'gerrit.systemd')
-rw-r--r--gerrit.systemd24
1 files changed, 24 insertions, 0 deletions
diff --git a/gerrit.systemd b/gerrit.systemd
new file mode 100644
index 000000000000..c0992cc28299
--- /dev/null
+++ b/gerrit.systemd
@@ -0,0 +1,24 @@
+[Unit]
+Description=Web based code review and project management for Git based projects
+After=network.target
+
+[Service]
+Type=simple
+User=gerrit
+EnvironmentFile=/etc/default/gerritcodereview
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=gerrit
+ExecStart=@/usr/bin/java gerrit -DGerritCodeReview=1 $JAVA_OPTIONS -jar $GERRIT_WAR daemon -d $GERRIT_SITE --console-log
+#MemoryLimit=768M
+OOMScoreAdjust=-1000
+LimitCPU=infinity
+LimitFSIZE=infinity
+LimitDATA=infinity
+LimitCORE=0
+LimitAS=infinity
+LimitLOCKS=infinity
+
+[Install]
+WantedBy=multi-user.target
+