summarylogtreecommitdiffstats
path: root/zincer.service
diff options
context:
space:
mode:
Diffstat (limited to 'zincer.service')
-rw-r--r--zincer.service20
1 files changed, 6 insertions, 14 deletions
diff --git a/zincer.service b/zincer.service
index 6a58782a925b..618835bfafcf 100644
--- a/zincer.service
+++ b/zincer.service
@@ -4,21 +4,13 @@ Description=Zinc Server
Documentation=https://github.com/typesafehub/zinc
[Service]
-#
-Environment=ZINC_HOME=/opt/zinc
-Environment=ZINC_PORT=3030
-Environment=ZINC_TIMEOUT=0
-#
-Environment=JAVA_EXEC=java
-Environment=JAVA_META=512m
-Environment=JAVA_HEAP=1024m
-Environment=JAVA_CODE=256m
-Environment=JAVA_STACK=1m
-#
-ExecStart=/bin/bash ${ZINC_HOME}/zincer.sh
-#
+EnvironmentFile=/etc/conf.d/zincer.conf
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=zincer
+ExecStart=/opt/zincer.sh
Restart=on-failure
-RestartSec=1s
+RestartSec=3s
[Install]
WantedBy=multi-user.target